Aug 29, 2017 · 1 min read
You can use php artisan to generate a middleware and then call the Auth::user()->authorizeRoles([‘manager’]) method inside this middleware and that’s it.. you just apply this middleware in any desired route.
You can use php artisan to generate a middleware and then call the Auth::user()->authorizeRoles([‘manager’]) method inside this middleware and that’s it.. you just apply this middleware in any desired route.