<?php
$date1 = \Carbon\Carbon::parse('2020-03-05 11:00:00');
$date2 = \Carbon\Carbon::parse('2020-03-10 11:00:00');
$diff = $date1->diffInDays($date2);
var_dump($diff);
2-28 5,302 views
<?php
$date1 = \Carbon\Carbon::parse('2020-03-05 11:00:00');
$date2 = \Carbon\Carbon::parse('2020-03-10 11:00:00');
$diff =...