We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47f5d2b + 8345b07 commit 14ce216Copy full SHA for 14ce216
app/Lio/Articles/ArticleRepository.php
@@ -16,7 +16,7 @@ public function getFeaturedArticles($count = 3)
16
return $this->model->with(['author', 'slug'])
17
->where('status', '=', Article::STATUS_PUBLISHED)
18
->orderBy('published_at', 'desc')
19
- ->take(3)
+ ->take($count)
20
->get();
21
}
22
0 commit comments