From 253a601f186d3aa6e57245d3c79986ff6a517968 Mon Sep 17 00:00:00 2001 From: Lupu Gheorghe Date: Thu, 12 Oct 2023 16:06:34 +0300 Subject: [PATCH] add fix --- app/Http/Resources/ProjectResource.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/Http/Resources/ProjectResource.php b/app/Http/Resources/ProjectResource.php index a90491de..6ff5ecec 100644 --- a/app/Http/Resources/ProjectResource.php +++ b/app/Http/Resources/ProjectResource.php @@ -21,9 +21,8 @@ public function toArray(Request $request): array 'slug' => $this->slug, 'county' => $this->counties->pluck('name')->join(', '), 'image' => $this->getFirstMediaUrl('preview'), - 'target_budget'=> $this->target_budget, + 'target_budget' => $this->target_budget, 'gallery' => $this->getMedia('gallery')->map(function ($media) { - return [ 'id' => $media->id, 'url' => $media->getFullUrl(), @@ -33,14 +32,14 @@ public function toArray(Request $request): array 'name' => $this->organization->name, 'id' => $this->organization->id, ], - 'is_national' => boolval($this->is_national), + 'is_national' => \boolval($this->is_national), 'start' => $this->start, 'end' => $this->end, 'description' => $this->description, 'scope' => $this->scope, 'reason_to_donate' => $this->reason_to_donate, - 'accepting_volunteers' => boolval($this->accepting_volunteers), - 'accepting_comments' => boolval($this->accepting_comments), + 'accepting_volunteers' => \boolval($this->accepting_volunteers), + 'accepting_comments' => \boolval($this->accepting_comments), 'videos' => $this->videos, 'external_links' => $this->external_links, 'categories' => $this->categories->pluck('name')->join(', '),