메소드 |
설명 |
|
check ( Model $authority, string $ability, Model | string | null $model = null ) : boolean |
Determine if the given authority has the given ability. |
|
checkRole ( Model $authority, array | string $roles, string $boolean = 'or' ) : boolean |
Check if an authority has the given roles. |
|
getAbilities ( Model $authority, boolean $allowed = true ) : Illuminate\Database\Eloquent\Collection |
Get a list of the authority's abilities. |
|
getForbiddenAbilities ( Model $authority ) : Illuminate\Database\Eloquent\Collection |
Get a list of the authority's forbidden abilities. |
|
getRoles ( Model $authority ) : Collection |
Get the given authority's roles. |
|
registerAt ( Illuminate\Contracts\Auth\Access\Gate $gate ) : void |
Register the clipboard at the given gate. |
|