Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Silber
Bouncer
Contracts
Clipboard
checkRole
Silber\Bouncer\Contracts\Clipboard::checkRole PHP Method
Clipboard Interface Documentation
Show file
Open project: JosephSilber/bouncer
checkRole()
public
method
Check if an authority has the given roles.
public
checkRole
(
Model
$authority
,
array
|
string
$roles
,
string
$boolean
= 'or' ) :
boolean
$authority
Illuminate\Database\Eloquent\Model
$roles
array
|
string
$boolean
string
return
boolean
public function checkRole(Model $authority, $roles, $boolean = 'or');
Clipboard
check
checkRole
getAbilities
getForbiddenAbilities
getRoles
registerAt