What problem does it solve?
Streamline and standardize Laravel API development by applying a service-repository pattern that reduces controller boilerplate, improves testability, and enforces consistent JSON responses and authentication.
Core Features & Use Cases
- Thin Controllers that delegate to Services for business logic.
- Service Layer to encapsulate business rules, transactions, and events.
- Repository Layer for complex queries and data access abstraction.
- API Resources for consistent response shaping and transformations.
- Form Requests for centralized validation separate from controllers.
- Built-in authentication support via Sanctum and Passport for token-based access.
- Scenarios: standard CRUD APIs, mobile backends, admin dashboards, and microservice-oriented endpoints.
Quick Start
Create a Laravel API skeleton with routes/api.php, Api controllers, a Service, a Repository, FormRequests, Resources, and configure Sanctum or Passport for authentication to start developing endpoints.