
Architecture Patterns
- Service Layer — extract from controllers
- Repository Pattern — abstract database operations
- Event-Driven — decoupled code with events
- Form Requests — dedicated validation classes
Performance
Redis for caching and queues. Route/config caching. Eager loading to prevent N+1.