From c733b06bfb0bf378915816ceada915de442780b5 Mon Sep 17 00:00:00 2001 From: ttimot24 Date: Wed, 13 Nov 2024 13:43:18 +0100 Subject: [PATCH] Fix web route fallback url handling --- routes/web.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/web.php b/routes/web.php index 36f266cc1..31bb202ce 100644 --- a/routes/web.php +++ b/routes/web.php @@ -42,7 +42,7 @@ } - Route::any('/{slug?}/{args?}', function ($slug = "", $args = null, Request $request, Container $container) use ($_THEME_NAME) { + Route::any('/{slug?}/{args?}', function ($slug = "", $args = null) use ($_THEME_NAME) { try { @@ -76,9 +76,9 @@ throw $e; } } catch (Exception $e) { - $handler = new \App\Exceptions\WebsiteExceptionHandler($container); + $handler = new \App\Exceptions\WebsiteExceptionHandler(app()); - return $handler->render($request, $e); + return $handler->render(request(), $e); } })->where('args', '(.*)'); }