title: Retrieve carbon date from database
body: <pre><code>   $rankArray = [
          'ranks' =&gt; $product[0]['productSalesRank']-&gt;pluck('rank'),
          'dates' =&gt; $product[0]['productSalesRank']-&gt;pluck('created_at')
      ];
  
  
      $rankArray['dates']-&gt;transform(function ($item) {
          return $item-&gt;format('d-m-Y');
      });
  </code></pre>
  
  <p>Having to transform everytime I retrieve the created_at/updated_at date from the database seems so inefficient, is there a simplier way of doing this?  </p>
  
  <p>I want to keep the date as Carbon, but in some instances, do just want the "value"</p>