Skip to content

Commit

Permalink
Improved entity filters. Added blogs
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-maddock committed Jan 8, 2025
1 parent d6f0d09 commit 872dd76
Show file tree
Hide file tree
Showing 7 changed files with 752 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/Filters/EventFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function promoter(?string $value = null): Builder
{
if (isset($value)) {
return $this->builder->whereHas('promoter', function ($q) use ($value) {
$q->where('name', '=', ucfirst($value));
$q->where('name','like', '%'.$value.'%');
});
} else {
return $this->builder;
Expand Down
Loading

0 comments on commit 872dd76

Please sign in to comment.