title: Laravel $request->all() is empty But $_POST returns the actual posted data in the form correctly
body: <p>I am facing an issue with Laravel request which seems pretty weird to me.
  On <code>POST</code> when I check <code>$request-&gt;all()</code> it returns an empty array. But <code>$_POST</code> returns the actual posted data in the form correctly.</p>
  
  <p>I am injecting the Request in the method as well.</p>
  
  <pre><code>use Illuminate\Http\Request;
  
  public function test(Request $request) {
         $postedData = $request-&gt;all();
         return response()-&gt;json($postedData);
  }
  </code></pre>
  
  <p>I am also passing the csrf token in the form.
  I have also tried the questions that are already here on Stack Overflow.</p>
  
  <p>My Laravel version is 5.4</p>