Property | Type | Description | |
---|---|---|---|
$authority | |||
$user | |||
$userAttributes |
Method | Description | |
---|---|---|
assertCan ( $action, $resource, $resourceValue = null ) | ||
assertCannot ( $action, $resource, $resourceValue = null ) | ||
getProperty ( $object, $propertyName ) | ||
invokeMethod ( $object, $methodName, $values = [] ) | ||
setProperty ( $object, $propertyName, $value ) |
Method | Description | |
---|---|---|
getAuthority ( $user ) | ||
getUser ( Illuminate\Database\Eloquent\Collection $roles = null ) : UserInterface | return an Authentificate User with role(s) | |
getUserWithRole ( string | array $rolesNames = null ) : UserInterface | return an Authentificate User with role(s) |
protected getUser ( Illuminate\Database\Eloquent\Collection $roles = null ) : UserInterface | ||
$roles | Illuminate\Database\Eloquent\Collection | Roles to add to the user. Default to null |
return | UserInterface |
protected getUserWithRole ( string | array $rolesNames = null ) : UserInterface | ||
$rolesNames | string | array | Role(s) to add to the user |
return | UserInterface |