title: How can I use a different nomenclature for inputs in Laravel 5?
body: <p>I've had a quick look into the Laravel 5 request object, and it looks like input params is found using:</p>
  
  <pre><code>$request-&gt;input('foo');
  </code></pre>
  
  <p>where foo would be either a GET variable (e.g. index.php?foo=bar) or a POST field.</p>
  
  <p>What if I wanted to have my URL like so: <code>mywebsite.com/input1/val1/input2/val2</code>. Is it possible to access these via <code>$request-&gt;input('input1')</code>? Further, what if my POST is a JSON variable such as:</p>
  
  <pre><code>{
  "input1" : "val1"
  }
  </code></pre>
  
  <p>How would I access these parameters?</p>