Skip to content

Commit

Permalink
add fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Oct 12, 2023
1 parent da06219 commit 253a601
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/Http/Resources/ProjectResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(', '),
Expand Down

0 comments on commit 253a601

Please sign in to comment.