JLBjlbardinas.dev
Projects / Case study 3 of 42020 – 2021

Fix and Free

Subscription and visit system for a gym, salon and spa business on Laravel 7.

Problem

A gym, salon and spa business sold packages two ways: some ran for a period of time and others for a set number of visits. Staff needed to check, at the front desk, whether a customer could still visit, and expired packages had to close on their own.

My role

Sole developer, freelance: database design, back end, front end and hosting on Heroku.

Hardest problem

Data integrity in the schema and the rules around it. Time-bound and count-bound packages follow different rules, so every visit check lives in a FormRequest built from reusable Rule objects. Invalid visits are rejected before they reach the database. A daily scheduled command expires packages with three set-based SQL UPDATEs instead of a per-row loop, so the result is the same however many packages expire that day.

Outcome

The client used the system through version 2.0.2. It has since been retired, along with the Heroku hosting, but the source code remains. The business now hires through TrabahongPinoy.

Evidence

Play
Demo video (v2.0.2)