DEV Community

Rizk Ussef
Rizk Ussef

Posted on

πŸš€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 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)