You can use regex with route constraints:
Route::get('/firm/{any?}', array(
'as' => 'admin',
'uses' => 'TestController@showStaff'
))->where('any', '(.*)?');
Frage
I have nested page order,
for example; URL : /firm/staff
my route is :
Route::get('/firm/{any?}', array('as' => 'admin', 'uses' => 'StaffController@showStaff'));
It is Ok...
On this staff page there is a staff list for example when i click manager...
URL : /firm/staff/manager
Route::get('/firm/{any?}', array('as' => 'admin', 'uses' => 'StaffController@showStaff'));
I used bu it give whooppsss
i searched in google and laravel forums but couldnt, how can i route this sub pages, i want to show until 4 level depth.
i tried Route::any but not..
Thanks...
Lösung
You can use regex with route constraints:
Route::get('/firm/{any?}', array(
'as' => 'admin',
'uses' => 'TestController@showStaff'
))->where('any', '(.*)?');