프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$authority | |||
$user | |||
$userAttributes |
메소드 | 설명 | |
---|---|---|
assertCan ( $action, $resource, $resourceValue = null ) | ||
assertCannot ( $action, $resource, $resourceValue = null ) | ||
getProperty ( $object, $propertyName ) | ||
invokeMethod ( $object, $methodName, $values = [] ) | ||
setProperty ( $object, $propertyName, $value ) |
메소드 | 설명 | |
---|---|---|
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 |
리턴 | UserInterface |
protected getUserWithRole ( string | array $rolesNames = null ) : UserInterface | ||
$rolesNames | string | array | Role(s) to add to the user |
리턴 | UserInterface |