i currently have /dashboard route that is behind login page, which after login takes you to admin panel.
Route::get('dashboard', ['middleware' => 'auth', function()
{
return view('dash.dashboard');
}]);
this is working fine. But I can't figure out how to prevent access to all the links in admin panel if not logged in. how can i prevent all the dashboard/{} routes? note - I'm still learning laravel.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire