Skip to content

Commit 14ce216

Browse files
author
Shawn McCool
committed
Merge pull request laravelio#89 from diegofelix/patch-1
Make the getFeatured use the $count var
2 parents 47f5d2b + 8345b07 commit 14ce216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Lio/Articles/ArticleRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function getFeaturedArticles($count = 3)
1616
return $this->model->with(['author', 'slug'])
1717
->where('status', '=', Article::STATUS_PUBLISHED)
1818
->orderBy('published_at', 'desc')
19-
->take(3)
19+
->take($count)
2020
->get();
2121
}
2222

0 commit comments

Comments
 (0)