diff --git a/app/Models/Expense.php b/app/Models/Expense.php index d5f69d0d1..bd0aa1e35 100644 --- a/app/Models/Expense.php +++ b/app/Models/Expense.php @@ -126,14 +126,14 @@ public function scopeWhereCategoryName($query, $search) { foreach (explode(' ', $search) as $term) { $query->whereHas('category', function ($query) use ($term) { - $query->where('name', 'LIKE', '%' . $term . '%'); + $query->where('name', 'LIKE', '%'.$term.'%'); }); } } public function scopeWhereNotes($query, $search) { - $query->where('notes', 'LIKE', '%' . $search . '%'); + $query->where('notes', 'LIKE', '%'.$search.'%'); } public function scopeWhereCategory($query, $categoryId) @@ -188,9 +188,9 @@ public function scopeWhereSearch($query, $search) { foreach (explode(' ', $search) as $term) { $query->whereHas('category', function ($query) use ($term) { - $query->where('name', 'LIKE', '%' . $term . '%'); + $query->where('name', 'LIKE', '%'.$term.'%'); }) - ->orWhere('notes', 'LIKE', '%' . $term . '%'); + ->orWhere('notes', 'LIKE', '%'.$term.'%'); } }