This is one of the important point which is not available on even stackoverflow. I want that by using one controller we at the moment which will handle every request that comes to my laravel 4.x application.This is one of the question which we should know.
The example to solve this issue is:
Example:
Regular expressions are set as requirements and not directly in the route.
Route::any('{all}', function($uri)
{
return View::make('hello');
})->where('all', '.*');
By using the above code we can handle every request that comes to my laravel 4.x
0 Comment(s)