public function handle($request, Closure $next)
    {
        $token = $this->getTokenFromRequest($request);
        $this->jwt->setToken($token)->validateOrFail();

        return $next($request);
    }
public function handle($request, Closure $next)
    {
        $token = $this->getTokenFromRequest($request);
        $this->jwt->setToken($token)->validateOrFail();

        return $next($request);
    }
public function handle ( $ request , Closure $ next ) { $ token = $ this -> getTokenFromRequest ( $ request ) ; $ this -> jwt -> setToken ( $ token ) -> validateOrFail ( ) ; return $ next ( $ request ) ; }
Validate JWT token before passing on to the next middleware

@param \Illuminate\Http\Request $request
@param Closure                  $next
Validate JWT token before passing on to the next middleware