Laravel 5 - Check if date is today
You can use isToday()
method to check if date is today:
if ($event[$i]->created_at->isToday())
you can use Carbon
@if($event[$i]->created_at->format('d.m.Y') == \Carbon::today() )
....
@endif
You can use isToday()
method to check if date is today:
if ($event[$i]->created_at->isToday())
you can use Carbon
@if($event[$i]->created_at->format('d.m.Y') == \Carbon::today() )
....
@endif