App\Services\Auth\Front\User::setRoleAttribute PHP 메소드

setRoleAttribute() 공개 메소드

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