PHP Трейт Silber\Bouncer\Conductors\Traits\ConductsAbilities

Показать файл Открыть проект

Открытые методы

Метод Описание
everything ( array $attributes = [] ) : mixed Allow/disallow all abilities on everything.
toAlways ( array | string $abilities, array $attributes = [] ) : mixed Allow/disallow the given ability on all models.
toManage ( string | array | Model $models, array $attributes = [] ) : void Allow/disallow all abilities on the given model.
toOwn ( string $model, array $attributes = [] ) : void Allow/disallow owning the given model.
toOwnEverything ( array $attributes = [] ) : mixed Allow/disallow owning all models.

Описание методов

everything() публичный Метод

Allow/disallow all abilities on everything.
public everything ( array $attributes = [] ) : mixed
$attributes array
Результат mixed

toAlways() публичный Метод

Allow/disallow the given ability on all models.
public toAlways ( array | string $abilities, array $attributes = [] ) : mixed
$abilities array | string
$attributes array
Результат mixed

toManage() публичный Метод

Allow/disallow all abilities on the given model.
public toManage ( string | array | Model $models, array $attributes = [] ) : void
$models string | array | Illuminate\Database\Eloquent\Model
$attributes array
Результат void

toOwn() публичный Метод

Allow/disallow owning the given model.
public toOwn ( string $model, array $attributes = [] ) : void
$model string
$attributes array
Результат void

toOwnEverything() публичный Метод

Allow/disallow owning all models.
public toOwnEverything ( array $attributes = [] ) : mixed
$attributes array
Результат mixed