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

Farouz's avatar

check date exists

Now i have records in my db "group_id","room_id", "date" ,"start_from"and "start_to", how to check the incoming orders doesn't exist in the same time with it's all possibility in laravel 5.5 this is the my first check

(!TimeTable::where(['room_id' => $request['room_id'], 'date' => $request['date'][$i], 'time_from' => $request['time_from'][$i], 'time_to' => $request['time_to'][$i]])->first()) what is the other checks

0 likes
1 reply

Please or to participate in this conversation.