You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just come to use this package and look like it only support filter for when(), this way it is needed to create many filters as permissions and roles for routes. I think it is better to support something like this:
I've just come to use this package and look like it only support filter for
when()
, this way it is needed to create many filters as permissions and roles for routes. I think it is better to support something like this:Permissions
Trusty::when('users*', ['permissions' => ['manage_users']]);
Roles
Trusty::when('users*', ['roles' => ['administrator', 'manager']]);
Filter
Trusty::when('users*', ['filter' => ['manage_users']]);
or
Trusty::when('users*', 'manage_users');// Default
I was used Entrust and it can do like this:
Entrust::routeNeedsPermission('users*', 'manage_users')
Entrust::routeNeedsRole('users*', 'admin')
The text was updated successfully, but these errors were encountered: