diff --git a/app/Home.php b/app/Home.php index 53d28d2..ef2be01 100644 --- a/app/Home.php +++ b/app/Home.php @@ -29,7 +29,9 @@ class Home extends Model implements Feedable public function scopeComment(QueryBuilder $query, $comment): QueryBuilder { - return $query->where('comment', 'LIKE', '%'.$comment.'%'); + return $query + ->where('comment', 'LIKE', '%'.$comment.'%') + ->orWhere('description', 'LIKE', '%'.$comment.'%'); } public function scopePriceMax(QueryBuilder $query, $price): QueryBuilder