Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
app
HasRoles
hasPermission
app\HasRoles::hasPermission PHP Méthode
HasRoles Trait Documentation
Afficher le fichier
Open project: appzcoder/laravel-admin
hasPermission()
public
méthode
Determine if the user may perform the given permission.
public
hasPermission
(
Permission
$permission
) :
boolean
$permission
Permission
Résultat
boolean
public function hasPermission(Permission $permission) { return $this->hasRole($permission->roles); }
HasRoles
assignRole
hasPermission
hasRole
roles