Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
BookStack
User
attachRoleId
BookStack\User::attachRoleId PHP Method
User Class Documentation
显示文件
Open project: ssddanbrown/bookstack
attachRoleId()
public
method
Attach a role id to this user.
public
attachRoleId
(
$id
)
$id
public function attachRoleId($id) { $this->roles()->attach($id); }
User
attachRole
attachRoleId
avatar
can
getAvatar
getDefault
getEditUrl
getProfileUrl
getShortName
hasRole
hasSocialAccount
isDefault
permissions
roles
sendPasswordResetNotification
socialAccounts