Comments (4)
Yeah, you're probably right. Will look into it.
from framework.
It's a simple fix, just drop the microtime(true)
off of the end of a generated route name. The Symfony routing component will drop an existing route name when adding a route so the route defined last will always have precedence.
I'll send a PR.
from framework.
OK, Thanks.
from framework.
The overriding of routes don't work in every case. If the semantic is equal but the spelling is different the router use the first declared route.
Works:
Route::get('part1/{part2}/{part3}', function($part2, $part3)
{
return 'This does not work. The second route is used.';
});
Route::get('part1/{part2}/{part3}', function($part2, $part3)
{
return 'This one will be run.';
});
Fails:
Route::get('part1/{part2}/{part3}', function($part2, $part3)
{
return 'This one will be run.';
});
Route::get('part1/{part4}/{part5}', function($part4, $part5)
{
return 'This does not work. The first route is used.';
});
Fails:
Route::get('part1/{part2}/{part3}', function($part2, $part3)
{
return 'This one will be run.';
});
Route::get('part1/test/test', function()
{
return 'This does not work. The first route is used.';
});
from framework.
Related Issues (20)
- Broadcasting does not work HOT 9
- loadMissing deep with MorphTo::morphWith() not working if some relation names are identical HOT 1
- Nextjs 13 pages/ router not able to persist laravel session with api handler HOT 1
- PHP Fatal error: Uncaught Error: Named parameter $api overwrites previous argument
- Problem with breeze install HOT 1
- Http client events do not fire when using setClient method HOT 3
- PHP expression runs twice when passing to blade component HOT 2
- ImplicitRule is deprecated but there are no alternatives
- Calling Artisan::call('route:list') produces an error HOT 4
- `SendEmailVerificationNotification` gets invoked multiple times HOT 3
- dd() on chrome not working HOT 1
- Using expressions in pivot queries HOT 5
- PHP Unit Tests don't work after updating to Laravel 11 HOT 4
- Queue job $tries, $retryUntil, not taking effect for already queued jobs in redis HOT 2
- The middleware is not behaving as expected. HOT 1
- PHP 8.4: Implicitly nullable parameter declarations deprecated HOT 6
- DB::usingConnection() doesn't respect read/write type HOT 1
- Manually Registering Events Make Them To Double Up HOT 8
- MariaDB service crashes since updating to Laravel 11 oom-kill possible memory leak in Laravel 11? HOT 39
- Health route not registering when using routing customization HOT 3
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 framework.