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

getRoleAttribute() public méthode

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