title: Send json message using routes on laravel
body: <p>currently I'm trying to test one on my Controllers, that needs a json file as input. The Controller is waiting for the json message using  </p>
  
  <pre><code>$input = Input::all();
  </code></pre>
  
  <p>My goal is to write a unit test that sends a json file to the controller via routes using for example the <code>$this-&gt;call($method, $uri, $parameters, $files, $server, $content)</code> method from laravel.</p>
  
  <p>I assume I have to enter the json message as a plain string in a value named <code>$content</code> like: </p>
  
  <pre><code> $this-&gt;content('Json Message String');
  </code></pre>
  
  <p>As <code>$method</code> I'm using 'Post' and the <code>$uri</code> is the route to my <code>ImporterController</code>.</p>
  
  <p>The problem is that the array <code>$input</code> on the controller side is always empty, so is there any need of declaring the message being a Json?</p>
  
  <p>Thank you for your help!</p>