I have a situation where I want that every request that comes to my laravel 4 application for this I will use one controller at the moment which should handle every request. For handling this query the solution is as follow:
This is the question and answer of this question is as follow:
Solution:
Regular expressions are set as requirements and not directly in the route.
Route::any('{all}', function($uri)
{
return View::make('hello');
})->where('all', '.*');
By this we will get all routes using Laravel 4.x
0 Comment(s)