#4 - wip
This commit is contained in:
@@ -15,7 +15,9 @@ class UserResource extends JsonResource
|
||||
"name" => $this->name,
|
||||
"email" => $this->email,
|
||||
"role" => "Human Resources Manager",
|
||||
"avatar" => "https://images.unsplash.com/photo-1550525811-e5869dd03032?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",
|
||||
"avatar" => asset($this->avatar),
|
||||
"employmentForm" => $this->employment_form->label(),
|
||||
"employmentStartDate" => $this->employment_start_date->translatedFormat("j F Y"),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user