App\Services\Auth\Back\User::setRoleAttribute PHP Method

setRoleAttribute() public method

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