Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

haizone's avatar

get recodes bigger then date and time

i have a table with 3 colums:

  • date
  • start_time
  • end_time

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

0 likes
1 reply

Please or to participate in this conversation.