jeudi 16 novembre 2017

WHERE clause date is greater than 24h - Carbon / Laravel

I Am making a query where I need to find all the results for reminder that are greater than 24h in that database.

My query looks like this but its wrong I believe

$reminder = Reminder::where('reminder_date','<', Carbon::now()->addHours(24))
                          ->get();

Using Laravel / Carbon



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2A4aXem
via IFTTT

Aucun commentaire:

Enregistrer un commentaire