From aa07e161dd32fc841638a4f3ecbbcb8896ddeb0e Mon Sep 17 00:00:00 2001 From: thiritin Date: Sun, 15 Sep 2024 22:44:01 +0200 Subject: [PATCH] fix error --- app/Http/Middleware/HandleInertiaRequests.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/Http/Middleware/HandleInertiaRequests.php b/app/Http/Middleware/HandleInertiaRequests.php index 0afed2d..723dc81 100644 --- a/app/Http/Middleware/HandleInertiaRequests.php +++ b/app/Http/Middleware/HandleInertiaRequests.php @@ -35,11 +35,6 @@ public function share(Request $request): array 'user' => $request->user()?->only('id', 'name', 'is_provisioning', 'timeout_expires_at', 'role'), 'can_access_filament' => $request->user()?->can('filament.access'), ], - 'ziggy' => function () use ($request) { - return array_merge((new Ziggy)->toArray(), [ - 'location' => $request->url(), - ]); - }, ]); } }