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
Laratrust
Contracts
LaratrustUserInterface
attachRole
Laratrust\Contracts\LaratrustUserInterface::attachRole PHP Method
LaratrustUserInterface Interface Documentation
Show file
Open project: santigarcor/laratrust
attachRole()
public
method
Alias to eloquent many-to-many relation's attach() method.
public
attachRole
(
mixed
$role
,
string
$group
= null )
$role
mixed
$group
string
public function attachRole($role, $group = null);
LaratrustUserInterface
ability
attachPermission
attachPermissions
attachRole
attachRoles
can
detachPermission
detachPermissions
detachRole
detachRoles
hasRole
permissions
roles