Backend 620 installs

Laravel Development Patterns

by affaan-m/everything-claude-code

Laravel architecture patterns, routing/controllers, Eloquent ORM, service layers, queues, events, caching, and API resources for production apps.

Skill content

Laravel Development Patterns

Production-grade Laravel architecture patterns for scalable, maintainable applications.

When to Use

- Building Laravel web applications or APIs

- Structuring controllers, services, and domain logic

- Working with Eloquent models and relationships

- Designing APIs with resources and pagination

- Adding queues, events, caching, and background jobs

How It Works

- Structure the app around clear boundaries (controllers -> services/actions -> models).

- Use explicit bindings and scoped bindings to keep routing predictable; still enforce authorization for access control.

- Favor typed models, casts, and scopes to keep domain logic consistent.

- Keep IO-heavy work in queues and cache expensive reads.

- Centralize config in config/* and keep environments explicit.