I am using sentinel by Ryan Durham http://ift.tt/MSeZd7 with Laravel 5.1.
I used to use Confide http://ift.tt/XgMzel with Larvel 4.2.
With Confide I was able to add an auth to any route like this
// Applies auth filter to the routes within orders/
Route::when('orders/*', 'auth');
I've searched through Sentinel documentation for this feature but I cannot find out how to get this done. I can put an auth for say admin
or user
in the construct of a controller, but I need to have specific auth abilities on specific routes.
My question is, how can I redirect a user
who goes to a route only for admin
using rydurham sentinel in a clean fashion the same as Confide?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire