Field Manual PHP / Laravel reference
← Assessment Methodology

09. Design architecture

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

What it is

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

When to use it

Workflow step 9 of 17. Apply before moving to the next decision.

Syntax

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

Example

Form Request validates.
Policy authorizes.
Controller coordinates.
Transfer operation owns the transaction.
Database constraints enforce integrity.

Common mistakes

Skipping this decision makes later implementation depend on unstated assumptions.

Related topics

Database designArchitecture