mardi 27 octobre 2015

advanced authentication routes in laravel 5

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.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1OW5I16
via IFTTT

Aucun commentaire:

Enregistrer un commentaire