Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
App
Services
Auth
Back
User
hasRole
App\Services\Auth\Back\User::hasRole PHP Method
User Class Documentation
Exibir arquivo
Open project: spatie-custom/blender
hasRole()
public
method
public
hasRole
(
UserRole
$role
) :
boolean
$role
App\Services\Auth\Back\Enums\UserRole
return
boolean
public function hasRole(UserRole $role) : bool { return $this->role->equals($role); }
User
activate
delete
getHomeUrl
getProfileUrl
getRoleAttribute
getStatusAttribute
guardDriver
hasRole
hasStatus
isActive
sendPasswordResetNotification
setRoleAttribute
setStatusAttribute