I have table that contain page value. I want to create dynamic route according to that value. So, i decide to create this route.
Route::get('{page}', 'PageController@check');
But, i have another page that have am-admin prefix.
Route::group(array('namespace' => 'Admin'), function() {
Route::resource('am-admin/category', 'CategoryController');
Route::resource('am-admin/post', 'PostController');
....
....
});
How to add an exception, so only routes that not contain am-admin will be execute run PageController@check.?
Thank you..
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community