stoic multilingual

This commit is contained in:
elvira
2026-09-28 18:17:33 +03:00
parent 023c11019c
commit aa051525a1
20 changed files with 696 additions and 27 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ public function __construct(private readonly ProductService $products) {}
public function index(string $locale)
{
$page = StoicPage::firstWhere('slug', 'home');
$page = StoicPage::localized('home');
if (! $page) {
abort(404);
+1 -1
View File
@@ -45,7 +45,7 @@ public function cookies(string $locale)
private function show(string $slug)
{
$page = StoicPage::firstWhere('slug', $slug);
$page = StoicPage::localized($slug);
if (! $page) {
abort(404);