App\Services\Auth\Front\User::getRoleAttribute PHP Method

getRoleAttribute() public method

public getRoleAttribute ( ) : UserRole
return App\Services\Auth\Front\Enums\UserRole
    public function getRoleAttribute() : UserRole
    {
        return new UserRole($this->attributes['role']);
    }