|
@@ -451,6 +451,10 @@ class PostRepositories
|
|
|
if(isset($request['is_suggest'])){
|
|
|
$where[] = ['topic.is_suggest', $request['is_suggest']];
|
|
|
}
|
|
|
+
|
|
|
+ if(isset($request['name'])){
|
|
|
+ $where[] = ['topic.name', 'like', "%{$request['name']}%"];
|
|
|
+ }
|
|
|
return $topic
|
|
|
->where($where)
|
|
|
->orderBy('id','desc')
|