difference between two dates in a date format carbon laravel code example
Example: different days in carbon laravel between different dates
$created = new Carbon($survey->created_at);
$now = Carbon::now();
$difference = ($created->diff($now)->days < 1)
? 'today'
: $created->diffForHumans($now);