From 8c85c3c68fd0b30f1f6edbb322a5298c6e2326d3 Mon Sep 17 00:00:00 2001 From: Juan Cristobal <65052633+juancristobalgd1@users.noreply.github.com> Date: Sat, 8 Jun 2024 20:12:53 +0200 Subject: [PATCH] update file --- src/libraries/Middlewares/VerifyCsrfTokenMiddleware.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libraries/Middlewares/VerifyCsrfTokenMiddleware.php b/src/libraries/Middlewares/VerifyCsrfTokenMiddleware.php index cafc1b6..f382ddf 100644 --- a/src/libraries/Middlewares/VerifyCsrfTokenMiddleware.php +++ b/src/libraries/Middlewares/VerifyCsrfTokenMiddleware.php @@ -65,9 +65,7 @@ protected function isAxmRequest(): bool */ protected function addCookieToResponse() { - $request = app()->request; - $config = config('session'); - $this->newCookie($request, $config); + $this->newCookie(app()->request, config('session')); } /**