DynamicRole is the interface for user roles based on attributes.
|match (User $user, $resource)|
Member Function Documentation
Check if this role matches for a user and resource.
$user The user instance. $resource The resource string.
- Boolean whether the role matches or not, null if the result is undefined