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 {