Update TodaysPick.php
This commit is contained in:
@@ -20,6 +20,7 @@ class TodaysPick extends Controller
|
|||||||
{
|
{
|
||||||
return ArticleResource::collection(Article::with('topics', 'source')
|
return ArticleResource::collection(Article::with('topics', 'source')
|
||||||
->whereDate('published_date', Carbon::today())
|
->whereDate('published_date', Carbon::today())
|
||||||
|
->inRandomOrder()
|
||||||
->take(8)
|
->take(8)
|
||||||
->get()
|
->get()
|
||||||
->unique('source.name'));
|
->unique('source.name'));
|
||||||
|
Reference in New Issue
Block a user