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

Keura's avatar
Level 1

How to make table next_session change.

I'm currently developing a project that involves managing gaming sessions at tables. Here's how it works: an admin initiates a table, allowing players to join. The admin sets a specific date and time for the table to start. Once the scheduled time arrives, all players receive an on-screen notification indicating that the session is beginning. After the session concludes, the system updates the database to schedule the next session exactly one week from the current time. Which controller should I use to implement these features in my project? And what is the best approach to do so?

0 likes
1 reply
MohamedTammam's avatar

Multiple approach in mind.

  1. Run a cron job that updates session dates.
  2. Create a table for session dates, and then fire a queue job after the session time to add new date in session_dates table. The last added date is the next date (That the way I prefere)

Please or to participate in this conversation.