title: Laravel formatting api reply
body: <p>I need to formatting the response of my api,</p>
  <p>At the moment the api controller is very simple</p>
  <pre><code>    public function index()
  {
      $data = WeDayMMA::take(30)-&gt;get(); 
      return response()-&gt;json($data);
  }
  </code></pre>
  <p>But I got a problem, some data here are store as time, but when i get the models, laravel convert my Time in DatatTime adding the actual data before ex: &quot;TTmin&quot;:&quot;2021-11-19T21:05:42.000000Z&quot; should be just &quot;TTmin&quot;:&quot;21:05:42.000000Z&quot; can I, and how, fomrat the data before sending?? which is the best performance way?</p>