src/Http/Middleware/BaseMiddleware.php
public function checkForToken(Request $request)
    {
        if (! $this->auth->parser()->setRequest($request)->hasToken()) {
            throw new UnauthorizedHttpException('jwTauth', 'Token not provided');
        }
    }
public function checkForToken(Request $request)
    {
        if (! $this->auth->parser()->setRequest($request)->hasToken()) {
            throw new UnauthorizedHttpException('jwTauth', 'Token not provided');
        }
    }
public function checkForToken ( Request $ request ) { if ( ! $ this -> auth -> parser ( ) -> setRequest ( $ request ) -> hasToken ( ) ) { throw new UnauthorizedHttpException ( 'jwTauth' , 'Token not provided' ) ; } }
Check the request for the presence of a token.

@param  \Illuminate\Http\Request  $request

@throws \Symfony\Component\HttpKernel\Exception\BadRequestHttpException

@return void
Check the request for the presence of a token .