$user->changeRole()
Changes the user role
Parameters
Name | Type | Default |
---|---|---|
$role * | string |
– |
Return type
This method does not modify the existing $user
object but returns a new object with the changes applied. Learn more →
Changes the user role
Name | Type | Default |
---|---|---|
$role * | string |
– |
This method does not modify the existing $user
object but returns a new object with the changes applied. Learn more →