vendredi 19 janvier 2018

Check user access with middleware string

I have a String with a middleware rule (like in routes):

$middleware = "can:index,App\Models\Order";

Is there any possiblity to check if a given user has access with this middleware rule?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire