Level 63
You can use all the available where clauses among them whereDate.
https://laravel.com/docs/9.x/queries#additional-where-clauses
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
i have a table with 3 colums:
and i want to get all the recorders that 1: bigger then now() 2. if is today bigget then end_time then now()
i didnt found how to make that with eloquent
and how i can do somthing like this:
where('date' ,>=, ,now()) and i didnt now how to do that: if date = today get only the recordes the end_time is bigger from now()
thanks
Please or to participate in this conversation.