This commit is contained in:
Adrian Hopek
2022-03-07 14:43:40 +01:00
parent 78d209dc3e
commit 069109c4b0
4 changed files with 74 additions and 53 deletions

View File

@@ -16,8 +16,7 @@ class UserResource extends JsonResource
"id" => $this->id,
"name" => $this->fullName,
"email" => $this->email,
"displayRole" => $this->role->label(),
"role" => $this->role,
"role" => $this->role->label(),
"position" => $this->position,
"avatar" => $this->getAvatar(),
"deleted" => $this->trashed(),