Hello,
I'd like to use routing arguments in routes that have an URL of unknown length. Ala.
site.com/a/b/c/d/e/f/g... (n-number of arguments).
What I would like to do is something like
Route::get('/{arguments}, function($arguments) { $a = $arguments[0]; $b = $arguments[1]; .... $z = $arguments[25]; });
Does anyone have a solution for this?
For anyone that is interested, here is teh solution!
Laravel 3: http://stackoverflow.com/questions/13297278/laravel-using-any-wildcard-for-all-routes
Laravel 4: http://stackoverflow.com/questions/16178426/get-all-routes-laravel-4
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community