What problem does it solve?
Reduce architectural drift and scattered business logic in Laravel applications by providing consistent, production-grade patterns for routing, controllers, Eloquent models, services, queues, events, caching, API resources, migrations, and validation so teams can deliver scalable, maintainable systems.
Core Features & Use Cases
- Clear boundaries: Enforce controller -> service/action -> model separation to keep controllers thin and business logic testable.
- Routing & authorization: Use route model binding, scopeBindings, and explicit bindings to prevent cross-tenant access and keep routes predictable.
- Eloquent best practices: Typed casts, value objects, scopes, query objects, preloading to avoid N+1, and soft deletes/global scopes for default filters.
- Resilience & background work: Offload IO-heavy tasks to queues with retry/ backoff strategies and design idempotent job handlers.
- API consistency: Standardize JSON responses with resources and pagination, and centralize configuration in config files for environment-specific behavior.
- Use case: Design a multi-tenant API that enforces scoped access, caches expensive reads with tag-based invalidation, and processes exports via queued jobs.
Quick Start
Create a scoped API route, implement a thin controller that delegates to a typed service action which returns a paginated API resource and invalidates related caches on model events.