nicht nutzbarer stand, header menü ist nicht intertia initialisiert. aber schick. codex änderungen noch enthalten.
This commit is contained in:
@@ -37,6 +37,12 @@ class MarketingController extends Controller
|
||||
return $p->append(['features', 'limits']);
|
||||
});
|
||||
|
||||
Log::info('Inertia render called for index', [
|
||||
'url' => request()->url(),
|
||||
'inertia_header' => request()->header('X-Inertia'),
|
||||
'packages_count' => $packages->count()
|
||||
]);
|
||||
|
||||
return Inertia::render('marketing/Home', compact('packages'));
|
||||
}
|
||||
|
||||
@@ -440,13 +446,28 @@ class MarketingController extends Controller
|
||||
return Inertia::render('marketing/Packages', compact('endcustomerPackages', 'resellerPackages'));
|
||||
}
|
||||
|
||||
public function occasionsType($locale, $type)
|
||||
public function occasionsType($type)
|
||||
{
|
||||
Log::info('OccasionsType hit', [
|
||||
'type' => $type,
|
||||
'locale' => app()->getLocale(),
|
||||
'url' => request()->fullUrl(),
|
||||
'route' => request()->route()->getName(),
|
||||
'isInertia' => request()->header('X-Inertia')
|
||||
]);
|
||||
|
||||
$validTypes = ['hochzeit', 'geburtstag', 'firmenevent'];
|
||||
if (!in_array($type, $validTypes)) {
|
||||
Log::warning('Invalid occasion type accessed', ['type' => $type]);
|
||||
abort(404, 'Invalid occasion type');
|
||||
}
|
||||
|
||||
Log::info('Inertia render called for occasionsType', [
|
||||
'url' => request()->url(),
|
||||
'inertia_header' => request()->header('X-Inertia'),
|
||||
'type' => $type
|
||||
]);
|
||||
|
||||
return Inertia::render('marketing/Occasions', ['type' => $type]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user