carbon compare date equal note working laravel code example Example: carbon compare same date $date1->toDateString() == $date2->toDateString()