Level 9
No, you need to instantiate $date as Carbon object, and then you can compare 2 values
Summer Sale! All accounts are 50% off this week.
Is it correct to compare between string date and carbon date?
$today = Carbon::today();
$date= '22-7-2017';
if($date > $today){
//.....
}
Please or to participate in this conversation.