You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/Http/Controllers/HomeController.php
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -16,10 +16,10 @@ public function index()
16
16
{
17
17
$latestArticles = Cache::remember('latestArticles', now()->addHour(), function () {
18
18
return Article::with('tags')
19
+
->published()
19
20
->orderByDesc('sponsored_at')
20
-
->orderByDesc('submitted_at')
21
+
->orderByDesc('published_at')
21
22
->orderByViews()
22
-
->published()
23
23
->trending()
24
24
->limit(4)
25
25
->get();
@@ -44,6 +44,8 @@ public function index()
44
44
seo()
45
45
->description('Laravel Cameroun est le portail de la communauté de développeurs PHP & Laravel au Cameroun, On partage, on apprend, on découvre et on construit une grande communauté.')
46
46
->twitterDescription('Laravel Cameroun est le portail de la communauté de développeurs PHP & Laravel au Cameroun, On partage, on apprend, on découvre et on construit une grande communauté.')
0 commit comments