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)