In laravel 5.2 I want to route all the undefined url to one particular controller.
I am developing CMS like functionality, in which I want this thing.
Route::get('profile', 'Controller@profile');
Route::get('{any}', 'Controller@page');
so url like
http://ift.tt/2e4426K
http://ift.tt/1ChKobQ
so first url should redirect to page function and second url to profile function
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire