title: Laravel get unamed "GET" parameter id from URL
body: <p>I am trying to get a value from the url that looks more or less like this:</p>
  
  <pre><code>http://localhost:8000/new-user/7
  </code></pre>
  
  <p>This number 7 passed in the url as a parameters is an ID in which i submit from the blade form as a request for an action i perform in the controller but i cant get this value in anyway. 
  This is what i tried so far:</p>
  
  <p>I tried to use this in the controller in which i submitted the form</p>
  
  <pre><code>$request-&gt;route('company_id');
  </code></pre>
  
  <p>I also tried to get this as a proper GET parameter:</p>
  
  <pre><code>&lt;input type="hidden" name="company_id" id="company_id" value="{{app('request')-&gt;input('company_id')}}"&gt;
  </code></pre>
  
  <p>and i also tried this:</p>
  
  <pre><code>&lt;input type="hidden" name="company_id" id="company_id" value="{{Input::get('company_id')}}"&gt;
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>&lt;input type="hidden" name="company_id" id="company_id" value="{{$_GET['company_id']}}"&gt;
  </code></pre>
  
  <p>None os these options work and i still receive an empty value.</p>
  
  <p>Any ideas or suggestions on how can i get this variable?</p>
  
  <p>Thank you!</p>