Seite läuft wieder, menü bringt keine fehler mehr
This commit is contained in:
@@ -32,10 +32,20 @@ class Handler extends ExceptionHandler
|
||||
|
||||
public function render($request, Throwable $e)
|
||||
{
|
||||
\Illuminate\Support\Facades\Log::info('Handler render called', ['inertia' => $request->inertia(), 'exception' => get_class($e)]);
|
||||
\Illuminate\Support\Facades\Log::info('Handler render called', ['inertia' => $request->inertia(), 'exception' => get_class($e), 'url' => $request->url()]);
|
||||
|
||||
if ($e instanceof \Symfony\Component\HttpKernel\Exception\NotFoundHttpException) {
|
||||
\Illuminate\Support\Facades\Log::error('Route not found (404)', [
|
||||
'url' => $request->url(),
|
||||
'method' => $request->method(),
|
||||
'referer' => $request->header('referer'),
|
||||
'user_agent' => $request->header('user-agent')
|
||||
]);
|
||||
}
|
||||
|
||||
if ($request->inertia()) {
|
||||
if ($e instanceof ValidationException) {
|
||||
\Illuminate\Support\Facades\Log::info('ValidationException in Inertia', ['errors' => $e->errors()]);
|
||||
\Illuminate\Support\Facades\Log::info('ValidationException in Inertia', ['errors' => $e->errors(), 'url' => $request->url()]);
|
||||
return response()->json([
|
||||
'message' => 'The given data was invalid.',
|
||||
'errors' => $e->errors(),
|
||||
@@ -43,7 +53,7 @@ class Handler extends ExceptionHandler
|
||||
}
|
||||
|
||||
if ($e instanceof \Exception) {
|
||||
\Illuminate\Support\Facades\Log::info('Exception in Inertia', ['message' => $e->getMessage()]);
|
||||
\Illuminate\Support\Facades\Log::info('Exception in Inertia', ['message' => $e->getMessage(), 'url' => $request->url()]);
|
||||
return response()->json([
|
||||
'message' => 'Registrierung fehlgeschlagen.',
|
||||
'errors' => ['general' => $e->getMessage()],
|
||||
|
||||
@@ -27,7 +27,7 @@ class CheckoutController extends Controller
|
||||
/**
|
||||
* Render the checkout wizard using the legacy marketing controller for now.
|
||||
*/
|
||||
public function show(Request $request, Package $package): JsonResponse
|
||||
public function show(Request $request, Package $package): Response
|
||||
{
|
||||
$marketingController = app(MarketingController::class);
|
||||
|
||||
|
||||
@@ -37,12 +37,6 @@ 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'));
|
||||
}
|
||||
|
||||
@@ -64,7 +58,7 @@ class MarketingController extends Controller
|
||||
|
||||
public function contactView()
|
||||
{
|
||||
return Inertia::render('marketing/Kontakt');
|
||||
return Inertia::render('legal.kontakt');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -462,12 +456,6 @@ class MarketingController extends Controller
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
namespace App\Services\Checkout;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
namespace App\Services\Checkout;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php
|
||||
|
||||
namespace App\Services\Checkout;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user