title: How is Laravel decoding HTTP request body Content-Type: application/x-www-form-urlencoded when using api call
body: <p>I'm using Laravel-5.5 and i'm developing an apis for an iOS app. </p>
  
  <p>Here, i'm using postman to call all apis. I've one registration api with two headers: </p>
  
  <p>1) <code>Authorization: Bearer access_token</code> </p>
  
  <p>2) <code>Content-type: application/x-www-form-urlencoded</code></p>
  
  <p>Now when i requesting this api i just want to print <code>dd($request-&gt;all());</code> But it's not give me proper request data. I've tried <code>json_decode(urldecode(file_get_contents('php://input')));</code> to decode it and also tried <code>$request-&gt;getContent();</code> but no luck!</p>
  
  <p>Can anyone knows how to get request data in controller when using <code>Content-type: application/x-www-form-urlencoded</code>??</p>
  
  <p><strong>EDIT:</strong></p>
  
  <pre><code>public function registration(Request $request)
  {
       dd($request-&gt;all());
       dd($request-&gt;getContent());  //also tried but not work 
       dd(json_decode(urldecode(file_get_contents('php://input'))));   //no luck
  }
  </code></pre>