title: How to calculate the time difference in Laravel
body: <p>How to get the remaining time up to the date of consumption ..</p>
  
  <pre><code>{{$item-&gt;created_at-&gt;toDateString()-&gt;diffInDays($item-&gt;expired)}}
  {{$item-&gt;created_at-&gt;toDateString() - $item-&gt;expired}}
  </code></pre>