Laravel Cobon Count Days między datami
$diff = Carbon::parse( $start_date )->diffInDays( $end_date );
Farhan Bajwa
$diff = Carbon::parse( $start_date )->diffInDays( $end_date );
$created = new Carbon($survey->created_at);
$now = Carbon::now();
$difference = ($created->diff($now)->days < 1)
? 'today'
: $created->diffForHumans($now);
$startdate->diffInDays($todate); //total days between two dates
$startdate->diffInMinutes($todate); //total number of minutes between two dates
$startdate->diffInMonths($todate); //total number of months difference