новости + переработка текстов
This commit is contained in:
@@ -20,11 +20,12 @@ class NewsService
|
||||
/**
|
||||
* @return \Illuminate\Support\Collection<int, \App\Models\News>
|
||||
*/
|
||||
public function listForLanding(int $limit = 6): Collection
|
||||
public function listForLanding(int $limit = 3): Collection
|
||||
{
|
||||
return News::query()
|
||||
->published()
|
||||
->ordered()
|
||||
->latest('created_at')
|
||||
->latest('id')
|
||||
->limit($limit)
|
||||
->get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user