php - Access route name in gate -
basically, want check route name in gate definitons.
the routes should grouped , single middleware checks gate see if access allowed. have looked "can" middleware of laravel 5.4 , have not found way that, since not pass required information gate.
it seems need define own middleware, or missing something?
apokryfos solution needed.
$request = resolve(\illuminate\http\request::class); now can access route name within gate.
Comments
Post a Comment