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
This is a request for the following role helper methods:
User::is(array $roles) Checks if the user belongs to all the defined roles: $user->is(['moderator‘, 'editor']);
User::isNot(array $roles) Checks if the user does not belong to all the defined roles: $user->isNot(['moderator‘, 'editor']);
User::isOneOf(array $roles) Checks if the user belongs to at least one of the defined roles: $user->isOneOf(['moderator‘, 'editor']);
User::isNoneOf(array $roles) Checks if the user does not belong to at least one of the defined roles: $user->isNoneOf(['moderator‘, 'editor']);
Side Note: For the developers that still require 5.3 and hence have no access to the new array syntax a shorted version for each of the listed functions above would be appreciated (User::is(String $role) -> return $this->is(array($role));).
The text was updated successfully, but these errors were encountered:
This is a request for the following role helper methods:
$user->is(['moderator‘, 'editor']);
$user->isNot(['moderator‘, 'editor']);
$user->isOneOf(['moderator‘, 'editor']);
$user->isNoneOf(['moderator‘, 'editor']);
Side Note: For the developers that still require 5.3 and hence have no access to the new array syntax a shorted version for each of the listed functions above would be appreciated (User::is(String $role) ->
return $this->is(array($role));
).The text was updated successfully, but these errors were encountered: