How do i configure the wildcards in the web / api routes. I've tried this currently and there are clashes in rendering the right component.
routes.php
Route::get('/user/{any?}',
function () {
return view('user.home');
})->where('any',
'[\/\w\.-]*');
Route::get('/admin/{any?}',
function () {
return view('admin.home');
})->where('any',
'[\/\w\.-]*');
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire