From 216c41e7cdfbaed7e552171242dc18222a8930ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=99=E5=AD=A6=E6=9D=B0?= Date: Tue, 29 May 2018 21:21:20 +0800 Subject: [PATCH] bug fix --- src/PdAuth/PdAuthServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PdAuth/PdAuthServiceProvider.php b/src/PdAuth/PdAuthServiceProvider.php index c45dc7e..4f8c59c 100644 --- a/src/PdAuth/PdAuthServiceProvider.php +++ b/src/PdAuth/PdAuthServiceProvider.php @@ -24,7 +24,7 @@ class PdAuthServiceProvider extends ServiceProvider $this->app['auth']->viaRequest('auth', function (Request $request) { - $token = $request->cookie(Authenticate::CookieName); + $token = $request->header('Authorization', $request->cookie(Authenticate::CookieName)); if ($token) { try {