Bug Fixes and thiladhun scraper intergration
This commit is contained in:
@@ -18,11 +18,11 @@ class TodaysPick extends Controller
|
||||
*/
|
||||
public function __invoke()
|
||||
{
|
||||
return ArticleResource::collection(Article::with('topics', 'source')
|
||||
return Article::with('topics', 'source')
|
||||
->whereDate('published_date', Carbon::today())
|
||||
->inRandomOrder()
|
||||
->take(8)
|
||||
->get()
|
||||
->unique('source.name'));
|
||||
->unique('source.name')->values()->toArray();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user