How Compare Times In Laravel

I want to compare my variable from may form with the current date : $a = explode(‘/’, $request->expired_at); $expiredAt = str_replace(‘/’, ‘-‘, jalali_to_gregorian($a[0], $a[1], $a[2], ‘:’)); my $…