Skip to content
Kawayan Media

Bamboo, not a monolith: how we scope Laravel systems

A large Laravel application is not automatically a good one. We scope systems in slices that can bend without breaking.

Kawayan Media team 3 min read
Cover image for Bamboo, not a monolith: how we scope Laravel systems

There is a temptation in custom software to design the whole building before pouring the foundation. The architecture diagram gets impressive, the database grows sixty tables, and the first working screen arrives months later.

We prefer bamboo: a system made of slices that can bend, grow and be replaced without taking the whole structure down.

Start with the decision the user makes

A feature is not a screen. It is a decision: approve this timesheet, release this payroll, appoint this candidate, close this service record.

Scoping from the decision gives you three things at once:

  • the data the decision needs;
  • the permission that governs it;
  • the evidence the decision should leave behind.

That is a much better unit of delivery than “build the employee module”.

Boundaries that survive change

Laravel makes it easy to put everything in a controller. We resist that for the parts that carry policy:

  • Actions for a single business operation, with the rules in one place.
  • Policies and permissions checked at the boundary, not in the view.
  • Events and audit records for decisions that must be attributable.
  • Tests for the rules that would be expensive to get wrong.

These boundaries are cheap to add early and expensive to retrofit.

Slices with an end state

A slice is not a prototype. It should be something the organisation can use, with the error states, permissions and tests that make it safe. It can be narrow, but it should be finished.

That usually means a vertical slice: the migration, the model, the action, the Livewire component, the policy, the test and the documentation. Small, but complete.

When to use a product instead of a project

Not every problem needs custom software. If the workflow is HR records, attendance, leave, payroll or government HR, OpenHR PH may already cover it. Configuring a product and adding the missing extension is usually cheaper than building a platform from scratch.

We treat OpenHR PH as a set of modules rather than an indivisible suite: enable what the team uses, hide what it does not, and keep the door open for a custom extension.

The handover test

The final test is not whether the demo works. It is whether the organisation can operate the system without us:

  • can a new administrator find the settings?
  • can the team run a backup and restore?
  • is the deployment path documented?
  • can another Laravel developer read the code and change it?

If the answer is yes, the system has roots. That is the point.

Have a similar problem?

Tell us about the workflow and the systems involved. We will reply with the next step.