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