Update (UI)
This commit is contained in:
@@ -64,6 +64,7 @@ public function searchResults(Request $request, $query)
|
||||
|
||||
$rss_posts = RssPost::with('category', 'entities_keywords')
|
||||
->where('status', 'published')
|
||||
->whereNotNull('keywords')
|
||||
->whereRaw("to_tsvector('english', title || ' ' || bites || ' ' || keyword_list) @@ plainto_tsquery('english', ?)", [trim(preg_replace('/\s+/', ' ', $query))])
|
||||
->where('published_at', '<=', now())
|
||||
->orderBy('published_at', 'desc')
|
||||
@@ -106,6 +107,7 @@ public function index(Request $request)
|
||||
//SEOTools::setDescription($description);
|
||||
|
||||
$rss_posts = RssPost::with('category', 'entities_keywords')->where('status', 'published')
|
||||
->whereNotNull('keywords')
|
||||
->where('published_at', '<=', now())
|
||||
->orderBy('published_at', 'desc')
|
||||
->cursorPaginate(60) ?? collect();
|
||||
|
||||
Reference in New Issue
Block a user