[Vuejs]-Route Differentiation between Admin & Non-Admin in Laravel

0👍

Try these routes

Route::get('/admin/{any?}', function () {
    return view('admin');
})->where('any', '[\/\w\.-]*');

Route::get('/{any?}', function () {
    return view('app');
})->where('any', '[\/\w\.-]*');

Leave a comment