protected function registerTokenParser()
    {
        $this->app->singleton('tymon.jwt.parser', function ($app) {
            $parser = new Parser(
                $app['request'],
                [
                    new AuthHeaders,
                    new QueryString,
                    new InputSource,
                    new RouteParams,
                    new Cookies,
                ]
            );

            $app->refresh('request', $parser, 'setRequest');

            return $parser;
        });
    }
protected function registerTokenParser()
    {
        $this->app->singleton('tymon.jwt.parser', function ($app) {
            $parser = new Parser(
                $app['request'],
                [
                    new AuthHeaders,
                    new QueryString,
                    new InputSource,
                    new RouteParams,
                    new Cookies,
                ]
            );

            $app->refresh('request', $parser, 'setRequest');

            return $parser;
        });
    }
protected function registerTokenParser ( ) { $ this -> app -> singleton ( 'tymon.jwt.parser' , function ( $ app ) { $ parser = new Parser ( $ app [ 'request' ] , [ new AuthHeaders , new QueryString , new InputSource , new RouteParams , new Cookies , ] ) ; $ app -> refresh ( 'request' , $ parser , 'setRequest' ) ; return $ parser ; } ) ; }
Register the bindings for the Token Parser.

@return void
Register the bindings for the Token Parser .