I have an Appointment class and in a blade template I am trying to check if the user has any appointments with today's date. There is a separate "date" column where the format is Y-m-d.
I have tried using Auth::user()->appointments->pluck('date') === Carbon\Carbon::now()->format('Y-m-d'), but that doesn't work because pluck('date') returns 'Y-m-d H:m:s'.
I'm also trying Auth::user()->appointments->where('date', Carbon\Carbon::now()->tz(Auth::user()->timezone))->count(), but no luck.
Any help is appreciated. Thank you!