diff --git a/app/Http/Controllers/OrganisationController.php b/app/Http/Controllers/OrganisationController.php index 286ffc3..d8392ad 100644 --- a/app/Http/Controllers/OrganisationController.php +++ b/app/Http/Controllers/OrganisationController.php @@ -24,6 +24,7 @@ public function __invoke(): JsonResource 'type', 'status', 'area', + 'description', 'created_at', 'updated_at', ]) diff --git a/app/Http/Resources/OrganisationResource.php b/app/Http/Resources/OrganisationResource.php index dbea7dd..ff2d1a3 100644 --- a/app/Http/Resources/OrganisationResource.php +++ b/app/Http/Resources/OrganisationResource.php @@ -27,6 +27,7 @@ public function toArray(Request $request): array 'area' => $this->area, 'county' => $this->county->name, 'activity_counties' => IdAndNameResource::collection($this->activityCounties), + 'description' => $this->description, 'created_at' => $this->created_at->format('Y-m-d H:i:s'), 'updated_at' => $this->updated_at->format('Y-m-d H:i:s'), 'volunteers_count' => (int) $this->volunteers_count,