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
Pop
Auth
Role
addPermission
Pop\Auth\Role::addPermission PHP Method
Role Class Documentation
Show file
Open project: nicksagona/PopPHP
addPermission()
public
method
Method to add a permission to the role
public
addPermission
(
string
$name
) :
Role
$name
string
return
Role
public function addPermission($name) { $this->permissions[$name] = true; return $this; }
Role
__construct
__toString
addChild
addPermission
factory
getName
getParent
hasParent
hasPermission
setParent