wzq 5 anni fa
parent
commit
aefb7db7fa
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Repositories/Post/PostRepository.php

+ 1 - 1
app/Repositories/Post/PostRepository.php

@@ -483,7 +483,7 @@ class PostRepository
             })
             ->where(function ($query) use ($request) {
                 if (isset($request['content'])) {
-                    $query->where('title', 'like', "%{$request['title']}%")
+                    $query->where('title', 'like', "%{$request['content']}%")
                         ->orWhere('content', 'like', "%{$request['content']}%");
                 }
             })