Fix missing LGU/tenant relations and display in tables; Add LGU hierarchy tests
This commit is contained in:
@@ -31,6 +31,10 @@ class UserDetailResource extends JsonResource
|
||||
'created_at' => $this->created_at?->toIso8601String(),
|
||||
'profile' => $profile?->toArray(),
|
||||
'has_household' => $this->headedHousehold()->exists() || $this->householdMemberships()->exists(),
|
||||
'tenant' => $this->whenLoaded('tenant', fn () => [
|
||||
'id' => $this->tenant->id,
|
||||
'name' => $this->tenant->name,
|
||||
]),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user