PHP 트레잇 Silber\Bouncer\Conductors\Traits\ConductsAbilities

파일 보기 프로젝트 열기: JosephSilber/bouncer

공개 메소드들

메소드 설명
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