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

beracah.kings's avatar

hotel room reservation project

I'm creating a hotel room reservation system. Room availability is based on the date range from bookings table. How to remove the rows in the bookings table if the user doesn't confirm the room registration (Rooms with unconfirmed status).

How to check availability of rooms for simultaneous users

0 likes
2 replies
princeoo7's avatar

you can run a corn job or scheduler. keep the status to the booking as pending or not confirmed and run the suggested to check which row is in the given state after x time.

x = time after which you want system to cancel the booking.

then delete such records.

beracah.kings's avatar

thank you prince. Any other workflow can be adopted, can you suggest

Please or to participate in this conversation.