Comments (1)
Hey @HeadStudios!
At the moment, there's no config option for this, sorry. If it's something that enough people think might be useful though, it might be something I'd consider in the future.
Off the top of my head, you might be able to do something like this:
$shortUrl = DB::transaction(function(): ShortURL {
ShortURL::where('url_key', 'YOUR-KEY-HERE')->delete();
return app(Builder::class)->destinationUrl('http://example.com')
->urlKey('YOUR-KEY-HERE')
->make();
})
I've not run the code above (so it might not work), and I'm not sure if it'd fit your use case. But it could hopefully prevent you from needing to make any changes to the core files 🙂
from short-url.
Related Issues (20)
- Collision and performance issue HOT 7
- Should store the country and city HOT 1
- redirect to url instead of throwing 404 HOT 3
- Laravel Sail Conflict Wrong IP HOT 1
- outdated v2.7 mobiledetect/mobiledetectlib in jenssegers/agent HOT 3
- Error: Class 'AshAllenDesign\ShortURL\Classes\Builder' not found HOT 1
- Prefix Null Issue HOT 10
- Laravel Jetstream compatability issue due to jenssegers/agent outdated dependency HOT 8
- db migration issue
- 如何获取真实的IP? HOT 3
- Tenancy with multi databases HOT 3
- remove prefix don't work HOT 2
- Specify the amount of uses HOT 1
- Browser information being stored as `0` (`false`) when not available in headers HOT 1
- Compatibility issue with Laravel 11 HOT 2
- [Discuss] Dropping `default_short_url` column in favor of `Accessor`
- any way to have multiple short base urls? HOT 2
- Upgrading to Laravel 11 HOT 3
- Laravel 11 compatibility HOT 2
- BindingResolutionException when trying to use lib HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from short-url.