новый лендинг

This commit is contained in:
2026-04-26 16:09:08 +04:00
parent 103e2bc4cf
commit 7701aa16c0
24 changed files with 6368 additions and 341 deletions
+12
View File
@@ -17,6 +17,18 @@ class NewsService
return News::query()->ordered()->get();
}
/**
* @return \Illuminate\Support\Collection<int, \App\Models\News>
*/
public function listForLanding(int $limit = 6): Collection
{
return News::query()
->published()
->ordered()
->limit($limit)
->get();
}
/**
* @return array{total: int, published: int, draft: int}
*/