
🚀Laravel Core CRUD Package: Clean Architecture with Laravel Core CRUD
🚀 Tired of rewriting CRUD logic in every Laravel project? After building countless APIs, I got fed up with repeating filtering, eager loading, pagination, and resource handling. So I built Laravel Core CRUD — a reusable package that automates the boring parts while keeping your architecture clean and scalable. ⚡ Key Features: -Ultra-Thin Controllers: Just extend CoreCrudController and define your Service in constrain(). No more fat controllers. -Smart Auto-Resolution: Models, Resources and Requests are automatically handled. -Advanced Filtering: =,!=, LIKE, BETWEEN, IN, Date, NULL checks. -Dynamic Eager Loading: Frontend requests only the relationships it needs. -Consistent API: Standardized JSON responses and pagination. 🏗 Architecture -UserController ➡ CoreCrudController → defines UserService in constrain() -UserService ➡ CoreCrudService → handles queries, filtering, pagination, relationships -UserResource → auto-resolved -UserRequest → auto-resolved -User → Eloquent model Everything
Continue reading on Dev.to Webdev
Opens in a new tab




