Support the ongoing development of Laravel.io →
posted 8 years ago
Views
Last updated 2 years ago.
0

Routes are matched in order. You have a route defined as '{id}' which will match 'anything' or 'login' or 'blah' etc.... So it will never make it to any other route defined below it with a similar URI for that segment.

Route::get('{id}', ...)

Will match http://yoursite.com/ANYTHING-HERE or http://yoursite.com/logout etc ...

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Jrecos jrecos Joined 12 Jun 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.