For example, If user forgot to approve till the end of the day a message will store to the database at the end of the day. I used the carbon format as below.
if (Carbon::now()->endOfDay()->eq(Carbon::parse($phaseValue->end_date)->endOfDay())) {
// add records here
}