PHP 트레잇 Silber\Bouncer\Database\Authorizable

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

공개 메소드들

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

보호된 메소드들

메소드 설명
getClipboardInstance ( ) : Clipboard Get an instance of the bouncer's clipboard.

메소드 상세

can() 공개 메소드

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
리턴 boolean

cannot() 공개 메소드

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
리턴 boolean

cant() 공개 메소드

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
리턴 boolean

getClipboardInstance() 보호된 메소드

Get an instance of the bouncer's clipboard.
protected getClipboardInstance ( ) : Clipboard
리턴 Silber\Bouncer\Clipboard