#90 - cr fixes
This commit is contained in:
@@ -14,7 +14,7 @@ class SimpleUserResource extends JsonResource
|
||||
{
|
||||
return [
|
||||
"id" => $this->id,
|
||||
"name" => $this->profile->fullName,
|
||||
"name" => $this->profile->full_name,
|
||||
"email" => $this->email,
|
||||
"avatar" => $this->profile->getAvatar(),
|
||||
];
|
||||
|
@@ -14,7 +14,7 @@ class UserResource extends JsonResource
|
||||
{
|
||||
return [
|
||||
"id" => $this->id,
|
||||
"name" => $this->profile->fullName,
|
||||
"name" => $this->profile->full_name,
|
||||
"email" => $this->email,
|
||||
"role" => $this->role->label(),
|
||||
"position" => $this->profile->position,
|
||||
|
@@ -15,7 +15,7 @@ class VacationRequestActivityResource extends JsonResource
|
||||
return [
|
||||
"date" => $this->created_at->toDisplayString(),
|
||||
"time" => $this->created_at->format("H:i"),
|
||||
"user" => $this->user ? $this->user->profile->fullName : __("System"),
|
||||
"user" => $this->user ? $this->user->profile->full_name : __("System"),
|
||||
"state" => $this->to,
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user