Field Manual PHP / Laravel reference

A REPEATABLE APPROACH

Assessment workflow

Work through these decisions before reaching for implementation details.

  1. Read requirements

    Restate requested outcomes. Mark must-have behavior and acceptance criteria.

  2. Identify actors

    List who interacts with the system: customer, administrator, operator, external provider.

  3. Identify use cases

    Write actor + action + outcome. Cover reads and mutations, not only creation.

  4. Identify entities

    Name persistent identities and value objects; describe relationships.

  5. Extract business rules

    Turn prose into invariants: bounds, ownership, valid states, currency, duplicate behavior.

  6. Identify constraints

    Record time, language, database, offline requirements, scale, and forbidden dependencies.

  7. Design data model

    Choose primary/foreign keys, nullability, uniqueness, indexes, retention, and amounts.

  8. Design API / interfaces

    Define input, output, status codes, authorization, and errors for each use case.

  9. Design architecture

    Use routes, controllers, models, and focused services only when warranted.

  10. Identify security requirements

    Check validation, identity, permissions, encoding, secrets, audit needs, and least privilege.

  11. Identify failure cases

    List missing records, invalid state, insufficient funds, duplicates, database failures, and unknown outcomes.

  12. Implement smallest correct version

    Complete one vertical path with validation, persistence, response, and tests before extras.

  13. Test happy paths

    Prove each acceptance criterion with realistic data and expected persisted results.

  14. Test edge cases

    Check zero, negative, maximum, missing, malformed, unauthorized, duplicate, and concurrent inputs.

  15. Review security

    Recheck every mutation and read boundary; inspect raw SQL, mass assignment, errors, and logs.

  16. Review maintainability

    Check naming, responsibilities, duplication, configuration, and whether the next reader can follow the flow.

  17. Explain trade-offs

    State assumptions, choices, limitations, alternatives, and what you would change with more time.