title: How to remove an existing item from a route request parameters? - Laravel 5.5
body: <p>I want to remove an existing item from a request parameters that passes in a controller. </p>
  
  <p>Here's my controller:</p>
  
  <pre><code>public function getIndex(Request $request)
  {
       // I need to remove a parameter from the $request here.
  }
  </code></pre>
  
  <p>Actually, I want to dispatch a request in a controller but when I make a new instance of <code>Request</code> like this,</p>
  
  <pre><code>$new_request = new Request();
  </code></pre>
  
  <p>and add some fields to the <code>$new_request</code> like this:</p>
  
  <pre><code>$request-&gt;request-&gt;add([
      'id' =&gt; '2',
      'name' =&gt; 'test'
  ]);
  </code></pre>
  
  <p>Nothing is added! and the dispatch method can not yield a correct response with empty request!
  But when I use an existing route request, every thing is ok, except extra items and I should get rid of them!</p>