Shift planning for a cinema
An app where my colleagues at a cinema in Žilina sign up for shifts and managers close the week. I built it alone and am now rewriting it for many cinemas.
- Role
- Everything myself: design, backend, frontend, deployment, support
- Period
- 08/2024 – present
- Status
- In use
- Stack
-
- PHP 8
- Laravel
- Filament
- Livewire
- SQL
- MySQL
- PHPUnit
- PHPStan
- Tailwind CSS
- HTML, CSS, JavaScript
- Docker
- Laravel Sanctum
In short
- ~30 colleagues have used it since 2024
- Many cinemas in one database
- An import from the live version that never writes to it
The problem
Shifts were agreed in a group chat and on paper, and managers struggled to build the week from that. The cinema week also starts on Thursday, so an ordinary calendar did not fit.
What I built
I launched the first version in August 2024. In 2026 I am rewriting it on Laravel 13 so that many cinemas can run in one database.
- A weekly calendar: sign up in one click, leave a note for the manager, close the week
- Absences, sign-up with approval and roles per cinema
- A shift schedule that rotates hard days and holidays fairly
- Excel export and settings each cinema chooses for itself
The parts that took the most work:
- Cinemas kept apart in one database. My own review found a hole: a permission in one cinema was enough to edit an account in another. Policies now check the membership of the person being acted on.
- Moving off the live version safely. The import reads the old database with read-only rights and merges sign-ups, so it can run again and again.
Data model
A cinema is a row in teams. Every record carries team_id, so many cinemas live in one database, and team_user holds membership and approval.
-
teams
- id pk
- name
- slug
- is_active
-
users
- id pk
- name
- current_team_id fk teams
-
team_user
- team_id fk teams
- user_id fk users
- approved_at
-
assignments
- id pk
- team_id fk teams
- user_id fk users
- date
- start_time
- end_time
-
absences
- id pk
- team_id fk teams
- user_id fk users
- date_from
- date_to
-
week_locks
- id pk
- team_id fk teams
- week_start
- locked_by fk users
Result
Colleagues have used the original version since 2024; the rewrite for more cinemas runs as a beta.
What I would do next
Next I would add a personal iCal feed for everyone and a board for swapping shifts.
What it looks like
1 / 9
Looking for a backend developer or a similar app?
Send me a few lines. I reply within 2 working days.
Want a similar website or app? Custom websites