App\Services\Auth\Back\User::setRoleAttribute PHP Метод

setRoleAttribute() публичный Метод

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