laravel:architecture
Installation
SKILL.md
Architecture
Use Laravel conventions before adding custom architecture. A good default request path is:
Route -> Controller -> Form Request -> Action/Service -> Eloquent/Integration -> Response
Do not force every layer into every feature. Add a boundary only when it makes behavior easier to test, reuse, reason about, or change.
Layer Decisions
Use a controller for HTTP orchestration:
- receive the request;
- delegate validation and authorization;
- call the application workflow;
- return redirect, response, resource, view, or stream.