Support the ongoing development of Laravel.io →
Configuration Authentication Requests
Last updated 2 years ago.
0

Maybe using pattern based routes.

Last updated 2 years ago.
0
Route::get('{level1?}/{level2?}/', function($level1, $level2 = null) {}); // Etc.Should work 
Last updated 2 years ago.
0
Route::any('{request}', function($request)
{
    //
})
->where('request', '[a-zA-Z0-9./-_]+');

Catch your url with regular expression. Something like that should work.

Last updated 2 years ago.
0

Yep, I answered this earlier with this thread:

http://laravel.io/forum/03-11-2014-how-to-make-urls-seo-friendly-with-nested-set-model

You can pretty much do the same thing you tried, but you need to chain a ->where() matcher, something like this:

->where('all', '(.*)?');
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

car6on car6on Joined 7 Apr 2014

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.