From d583c82bcd78487fb4403b6e4341b477441cae44 Mon Sep 17 00:00:00 2001 From: weigang Date: Thu, 6 Aug 2020 17:25:10 +0800 Subject: [PATCH] =?UTF-8?q?app=5Fenv=E8=AE=BE=E7=BD=AE=E4=B8=BAlocal?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E8=BF=9B=E8=A1=8Capi=20auth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 371ecf76c89ec444796d8831b8594100272196ab) --- app/Middleware/Auth/ApiMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Middleware/Auth/ApiMiddleware.php b/app/Middleware/Auth/ApiMiddleware.php index ce06bff..44cf3fc 100644 --- a/app/Middleware/Auth/ApiMiddleware.php +++ b/app/Middleware/Auth/ApiMiddleware.php @@ -39,7 +39,7 @@ class ApiMiddleware implements MiddlewareInterface public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { - if (env('APP_ENV') == 'dev') { + if (env('APP_ENV') == 'dev' || env('APP_ENV') == 'local') { return $handler->handle($request); }