title: Laravel post with content type json
body: <p>I'm working with laravel 5 framework, i want to create a rest API and i'm getting some problems.
  I have a method post that receives Json and i can't access that content, always say is <code>[]</code> or <code>null</code></p>
  
  <p>That's my controller function:</p>
  
  <pre><code>public function Register()
  {            
      $teste = Request::json()-&gt;all();     
      $name=$teste['wtf'];
      return  $name;            
  }
  </code></pre>
  
  <p>That returns me this error "Undefined index: wtf" because the array $teste is null</p>
  
  <p>How can I receive JSON properly?</p>