protected function setRequestThroughMiddleware($request)
    {
        return $this->pipeline
            ->send($request)
            ->through($this->middleware)
            ->then(function ($request) {
                return $request;
            });
    }
protected function setRequestThroughMiddleware($request)
    {
        return $this->pipeline
            ->send($request)
            ->through($this->middleware)
            ->then(function ($request) {
                return $request;
            });
    }
protected function setRequestThroughMiddleware ( $ request ) { return $ this -> pipeline -> send ( $ request ) -> through ( $ this -> middleware ) -> then ( function ( $ request ) { return $ request ; } ) ; }
Set the given request through the middleware.

@param  \Illuminate\Http\Request $request

@return \Illuminate\Http\Request
Set the given request through the middleware .