title: How to return gziped API response in Laravel?
body: <p>I generally using such response syntax: </p>
  
  <pre><code>return response()
      -&gt;json(['request'=&gt; $data, 
          'response' =&gt; $response, 
          'client' =&gt; $client], 200);
  </code></pre>
  
  <p>How could I make it <code>gzip</code>ed? </p>