PHP Trait Silber\Bouncer\Database\Authorizable

Afficher le fichier Open project: JosephSilber/bouncer

Méthodes publiques

Méthode Description
can ( string $ability, Model | null $model = null ) : boolean Determine if the authority has a given ability.
cannot ( string $ability, Model | null $model = null ) : boolean Determine if the authority does not have a given ability.
cant ( string $ability, Model | null $model = null ) : boolean Determine if the authority does not have a given ability.

Méthodes protégées

Méthode Description
getClipboardInstance ( ) : Clipboard Get an instance of the bouncer's clipboard.

Method Details

can() public méthode

Determine if the authority has a given ability.
public can ( string $ability, Model | null $model = null ) : boolean
$ability string
$model Illuminate\Database\Eloquent\Model | null
Résultat boolean

cannot() public méthode

Determine if the authority does not have a given ability.
public cannot ( string $ability, Model | null $model = null ) : boolean
$ability string
$model Illuminate\Database\Eloquent\Model | null
Résultat boolean

cant() public méthode

Determine if the authority does not have a given ability.
public cant ( string $ability, Model | null $model = null ) : boolean
$ability string
$model Illuminate\Database\Eloquent\Model | null
Résultat boolean

getClipboardInstance() protected méthode

Get an instance of the bouncer's clipboard.
protected getClipboardInstance ( ) : Clipboard
Résultat Silber\Bouncer\Clipboard