Laravel Authentication by Routes

Asked

Viewed 407 times

1

Is there any way in Laravel to add permissions or put a users in a specific group when logging in (I refer to the Auth structure of Laravel itself).

Example, I define that only an Admin Group has access to Products/Create Route and that the Products/List route can be seen by both the Admin group and the Users Group (and vice versa).

  • Yes, you can create a specific Middleware for certain groupings of routes. Ref: https://laravel.com/docs/5.5/middleware

1 answer

-1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.