title: Laravel API not accepting JSON request from Postman
body: <p>Laravel API is not accepting <code>JSON</code> request. If I request as form-data it works but if I post <code>JSON</code> object in postman body then it does not receive the request data.</p>
  <p>Route:</p>
  <pre><code>$router-&gt;group(['prefix' =&gt; 'imp'], function () use ($router) {
      $router-&gt;group(['prefix' =&gt; 'lead'], function () use ($router) {
          $router-&gt;post('/jardy', 'FeedController@jardy');
      });
  });
  </code></pre>
  <p>Controller:</p>
  <pre><code> public function jardy(Request $request)
      {
  
          $this-&gt;validate($request, [
              'api_key' =&gt; 'required',
          ]);
          $api_key = $request-&gt;input('api_key');
          return $api_key;
  }
  
  </code></pre>
  <p><code>JSON</code> Request:</p>
  <p><a href="https://i.stack.imgur.com/fYLsZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fYLsZ.png" alt="Postman request using JSON" /></a></p>
  <p>Form data Request:</p>
  <p><a href="https://i.stack.imgur.com/MjGbJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MjGbJ.png" alt="Postman request using Form data" /></a></p>
  <p>Why its not working in case of <code>JSON</code>, <code>content-type</code> is <code>application/json</code>, <code>Accept:*/*</code>???</p>