10 months ago

check date exists

Posted 10 months ago by Farouz

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

Please sign in or create an account to participate in this conversation.