Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
Caffeinated
Shinobi
Models
Permission
syncRoles
Caffeinated\Shinobi\Models\Permission::syncRoles PHP Method
Permission Class Documentation
Mostrar archivo
Open project: caffeinated/shinobi
syncRoles()
public
method
Syncs the given role(s) with the permission.
public
syncRoles
(
array
$roleIds
= [] ) :
boolean
$roleIds
array
return
boolean
public function syncRoles(array $roleIds = []) { return $this->roles()->sync($roleIds); }
Permission
assignRole
revokeAllRoles
revokeRole
roles
syncRoles