App\Services\Auth\Back\User::setRoleAttribute PHP Méthode

setRoleAttribute() public méthode

public setRoleAttribute ( UserRole $role )
$role App\Services\Auth\Back\Enums\UserRole
    public function setRoleAttribute(UserRole $role)
    {
        $this->attributes['role'] = $role->getValue();
    }