Update (copies)
This commit is contained in:
@@ -26,11 +26,15 @@ public function home(Request $request)
|
||||
// $query->whereNotIn('id', $featured_posts->pluck('id')->toArray());
|
||||
// })->where('status', 'publish')->where('published_at', '<=', now())->orderBy('published_at', 'desc')->limit(10)->get();
|
||||
|
||||
$rss_count = RssPost::where('status', 'published')
|
||||
->where('published_at', '>=', now()->subDay())
|
||||
->count();
|
||||
|
||||
$top_rss_keywords = HybridTopRssPostKeywords::get(1, 16);
|
||||
|
||||
$rss_posts = RssPost::with('entities_keywords')->whereNotNull('keywords')->where('status', 'published')->orderBy('published_at', 'desc')->paginate(15);
|
||||
$rss_posts = RssPost::with('entities_keywords')->whereNotNull('keywords')->where('status', 'published')->orderBy('published_at', 'desc')->paginate(30);
|
||||
|
||||
return response(view('front.welcome', compact('rss_posts', 'top_rss_keywords')), 200);
|
||||
return response(view('front.welcome', compact('rss_posts', 'top_rss_keywords', 'rss_count')), 200);
|
||||
}
|
||||
|
||||
public function terms(Request $request)
|
||||
|
||||
@@ -18,9 +18,9 @@ class TestController extends Controller
|
||||
{
|
||||
public function blacklistkw(Request $request)
|
||||
{
|
||||
$country_names = get_country_names(true);
|
||||
$country_names = get_country_names(true);
|
||||
|
||||
dd($country_names);
|
||||
dd($country_names);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user