From 41ca21947cc1bf933044cf895004d6545fbd4f84 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 15 Jan 2022 20:49:40 +1100 Subject: [PATCH] TokenCSRF --- app/Http/Middleware/VerifyCsrfToken.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Http/Middleware/VerifyCsrfToken.php b/app/Http/Middleware/VerifyCsrfToken.php index 87272ddfd084..90ed285e184e 100644 --- a/app/Http/Middleware/VerifyCsrfToken.php +++ b/app/Http/Middleware/VerifyCsrfToken.php @@ -33,15 +33,15 @@ class VerifyCsrfToken extends Middleware ]; - public function handle($request, \Closure $next) { + // public function handle($request, \Closure $next) { - try { - return parent::handle($request, $next); - } catch (TokenMismatchException $ex) { + // try { + // return parent::handle($request, $next); + // } catch (TokenMismatchException $ex) { - throw new TokenMismatchException('CSRF token mismatch.'); + // throw new TokenMismatchException('CSRF token mismatch.'); - } - } + // } + // } }