title: How to get $request->content in Laravel 5.0?
body: <p>I'm new to Laravel and am having some trouble getting hold of the JSON I'm posting to a REST api I'm writing.</p>
  
  <p><strong>UPDATE</strong>
  For clarity, this:</p>
  
  <pre><code>    $content = json_decode($request-&gt;content);
      var_dump($content);
      exit;
  </code></pre>
  
  <p>Also returns <code>null</code></p>
  
  <p><strong>Original</strong></p>
  
  <p>Here's my <code>store</code> method:</p>
  
  <pre><code>public function store(Request $request)
  {       
      // Creates a new user based on the passed JSON
      // I appreciate this wont work as it's json encoded, but this was my
      // last test. 
      // Previously I'd tried: $content = json_decode($request-&gt;content);
      // but that was also null :(
      $user = new User();
      $user-&gt;name = $request-&gt;content["name"];
      $user-&gt;email = $request-&gt;content['email'];
      $user-&gt;password = $request-&gt;content['password'];
  
      var_dump($request); exit;
      // Commit to the database
      $user-&gt;save();
  }
  </code></pre>
  
  <p>Here's what I'm attempting to send (via: I'm Only Resting client):</p>
  
  <pre><code>{
    "name":"Steve Jobs 2",
    "email":"s@trp2.com",
    "password":"something123",
  }
  </code></pre>
  
  <p>And here's the result when var_dump is rendered as the response:</p>
  
  <pre><code>      protected 'cacheControl' =&gt; 
          array (size=0)
            empty
    protected 'content' =&gt; string '{
    "name":"Steve Jobs 2",
    "email":"s@trp2.com",
    "password":"something123",
  }' (length=85)
    protected 'languages' =&gt; null
    protected 'charsets' =&gt; null
    protected 'encodings' =&gt; null
  </code></pre>
  
  <p>So I can see the <code>content</code> within the <code>Request</code> object, but no matter what I try, it's always null. So my question is, how on earth do I access that?!</p>
  
  <p>Thanks!</p>