
This problem covers writing the migration for a products table so prices are stored exactly, missing values get sensible defaults, the name is indexed, and the change can be rolled back.
This problem covers configuring a model so dates, flags, money, statuses and settings read back as the right PHP types, only safe fields can be mass assigned, and a full name is worked out on demand.
This problem covers filling in a booking's reference and status automatically when it is created, and cleaning its email every time it is saved.
This problem covers building a gym's members table and model from scratch: a migration with the right types and defaults, safe mass assignment, casts, a status worked out from the expiry date, a generated member code and a cleaned email.