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\.-]*');
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/30u1Q3H
via IFTTT
Aucun commentaire:
Enregistrer un commentaire