π 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 is auto-resolved, keeping your controllers ultra-thin and your code DRY, maintainable, and professional.
π¦ Install via Composer:
composer require rizkussef/laravel-core-crud
π Check it out:
Packagist: https://lnkd.in/dSJhKxJf
GitHub: https://lnkd.in/dX7q7xPk

Top comments (0)