Méthode | Description | |
---|---|---|
check ( |
Determine if the given authority has the given ability. | |
checkRole ( |
Check if an authority has the given roles. | |
getAbilities ( |
Get a list of the authority's abilities. | |
getForbiddenAbilities ( |
Get a list of the authority's forbidden abilities. | |
getRoles ( |
Get the given authority's roles. | |
registerAt ( Illuminate\Contracts\Auth\Access\Gate $gate ) : void | Register the clipboard at the given gate. |
Méthode | Description | |
---|---|---|
checkGetId ( |
Determine if the given authority has the given ability, and return the ability ID. | |
compileAbilityIdentifiers ( string $ability, |
Compile a list of ability identifiers that match the provided parameters. | |
compileModelAbilityIdentifiers ( string $ability, |
Compile a list of ability identifiers that match the given model. | |
findMatchingAbility ( |
Determine if any of the abilities can be matched against the provided applicable ones. | |
getMatchedAbilityId ( |
Get the ID of the ability that matches one of the applicable abilities. | |
parseGateArguments ( mixed $arguments, mixed $additional ) : array | Parse the arguments we got from the gate. |
protected findMatchingAbility ( |
||
$abilities | ||
$applicable | ||
$model | ||
$authority | ||
Résultat | integer | null |
public getAbilities ( |
||
$authority | ||
$allowed | boolean | |
Résultat | Illuminate\Database\Eloquent\Collection |
public getForbiddenAbilities ( |
||
$authority | ||
Résultat | Illuminate\Database\Eloquent\Collection |
protected getMatchedAbilityId ( |
||
$abilityMap | ||
$applicable | ||
Résultat | integer | null |
public getRoles ( |
||
$authority | ||
Résultat |
public registerAt ( Illuminate\Contracts\Auth\Access\Gate $gate ) : void | ||
$gate | Illuminate\Contracts\Auth\Access\Gate | |
Résultat | void |