|
@@ -26,7 +26,7 @@ class UserSimpleResource extends JsonResource
|
|
|
'created_at' => (string)$this->created_at,
|
|
|
'created_by' => new UserProfileResource($this->createdBy),
|
|
|
'company' => $this->company_id,
|
|
|
- 'department' =>$this->department_id,
|
|
|
+ 'department' =>new DepartmentResource($this->department),
|
|
|
'role' => $this->role_id,
|
|
|
'role_name' => $this->role->name,
|
|
|
'status' =>$this->status,
|