I need to list schedules that have date greater than or equal to the current date, I'm doing it as below but it does not work, it does not return any record.
Auth::user()->Agendamentos->where('data', '>=', date("Y-m-d h:i:s"))
I'm doing this on my view
. If I take this where
it works normally, however it lists everything, both with past and future dates.
My date field stores the data in the format datetime
(2017-07-01 10:25:45).