Skip to content

Commit

Permalink
Modified event filter
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-maddock committed Jan 8, 2025
1 parent 8410270 commit d6f0d09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Filters/EventFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function venue(?string $value = null): Builder
{
if (isset($value)) {
return $this->builder->whereHas('venue', function ($q) use ($value) {
$q->where('name', '=', ucfirst($value));
$q->where('name','like', '%'.$value.'%');
});
} else {
return $this->builder;
Expand Down
1 change: 1 addition & 0 deletions app/Http/Resources/EntityResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function toArray($request)
'updated_at' => $this->updated_at,
'primary_photo' => $this->getPrimaryPhotoPath(),
'primary_photo_thumbnail' => $this->getPrimaryPhotoThumbnailPath(),
'primary_location' => $this->getPrimaryLocation(),
];
}
}

0 comments on commit d6f0d09

Please sign in to comment.