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
Learner
Repositories
Eloquent
UserRepository
attachRole
Learner\Repositories\Eloquent\UserRepository::attachRole PHP Method
UserRepository Class Documentation
Show file
Open project: RryLee/learner.video
attachRole()
public
method
attach a role to user.
public
attachRole
(
User
$user
,
mixed
$roleOrRoleId
)
$user
Learner\Models\User
$roleOrRoleId
mixed
public function attachRole(User $user, $roleOrRoleId) { $user->roles()->attach($roleOrRoleId); }
UserRepository
__construct
attachRole
attachRoleById
create
delete
findAllActivePaginated
findNotActivePaginated
findTrashedPaginated
findWithTrashedById
getRegisterForm
remove
restore
toggleActive
update