src/Auth/Provider/JWT.php
protected function getToken(Request $request)
    {
        try {
            $this->validateAuthorizationHeader($request);

            $token = $this->parseAuthorizationHeader($request);
        } catch (Exception $exception) {
            if (! $token = $request->query('token', false)) {
                throw $exception;
            }
        }

        return $token;
    }
protected function getToken(Request $request)
    {
        try {
            $this->validateAuthorizationHeader($request);

            $token = $this->parseAuthorizationHeader($request);
        } catch (Exception $exception) {
            if (! $token = $request->query('token', false)) {
                throw $exception;
            }
        }

        return $token;
    }
protected function getToken ( Request $ request ) { try { $ this -> validateAuthorizationHeader ( $ request ) ; $ token = $ this -> parseAuthorizationHeader ( $ request ) ; } catch ( Exception $ exception ) { if ( ! $ token = $ request -> query ( 'token' , false ) ) { throw $ exception ; } } return $ token ; }
Get the JWT from the request.

@param \Illuminate\Http\Request $request

@throws \Exception

@return string
Get the JWT from the request .