title: AJAX Request getContent Laravel 5.1
body: <p><a href="https://i.stack.imgur.com/4KKk1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4KKk1.jpg" alt="AJAX RETURN "></a></p>
  
  <pre><code>$content = $request-&gt;getContent();
     return \Response::json([
                  'success' =&gt;  $content
              ]);
  </code></pre>
  
  <p>I don't know how to format it to json in laravel 5.1. I want to use the data but if I use $request->input('name') it is null, it's actually in the controller. If you have another way to get the data it would be much appreciated. </p>