sajadsdi/laravel-repository
Laravel repository pattern package to structure data access in your apps. Provides base repository classes, common CRUD methods, and an easy way to keep queries and persistence logic out of controllers and services for cleaner, testable code.
Adopt if:
Model::with()->where()->paginate() across controllers).Look elsewhere if:
spatie/laravel-caching or predis/predis).For Executives/Business Leaders: "This package lets our engineering team build features faster by standardizing how we access and manipulate data in Laravel. Instead of repeating the same database queries across controllers or services, we’ll use a repository layer—like a middleman between our app logic and the database. This reduces bugs, makes the code easier to test, and sets us up for scaling. For example, if we’re launching a new admin dashboard or API, repositories will cut development time by 30% while keeping our tech debt low. It’s a small investment now that pays off as the app grows."
For Engineering/Tech Leads: *"The sajadsdi/laravel-repository package gives us a batteries-included repository pattern for Eloquent, solving:
with(), where(), or paginate() across controllers.UserRepository::getActiveAdmins()) without touching models.Tradeoffs:
Proposal:
Alternatives considered:
laravel-repository-pattern, but this one is actively maintained and Laravel-focused).Ask: Approval to include this in our tech stack and allocate 2 dev days to onboard the team."*
How can I help you explore Laravel packages today?