saineshmamgain/laravel-repositories
A Laravel package that brings the repository pattern to your projects, with Artisan commands to generate repositories and interfaces, clean service container bindings, and a maintainable abstraction layer over Eloquent models for tidier, testable application code.
^8.3, Laravel ^12.0 or ^13.12. Laravel 11 is intentionally unsupported in 2.0.1 because Composer blocks it due to security advisories.UserRepositoryInterface, implement it with an Eloquent repository extending the package base class, bind the contract in a service provider, and inject it into a controller or action. This gives you an immediate testability and query-organization win without refactoring the whole app.AppServiceProvider or a dedicated RepositoryServiceProvider. Prefer constructor injection of the interface into controllers, actions, jobs, and services rather than resolving repositories with app().findActiveByEmail, paginateRecentForTeam, or existsForCustomer. Keep controllers thin and move query composition into repositories or a service layer.^13.12 means Laravel 13.12 or newer within major 13. If your app is on an earlier Laravel 13 release, Composer will block the update.^8.3 is required. Align local, CI, and production runtimes before debugging package behavior; syntax or dependency failures may otherwise look like package bugs.find, all, create, or paginate. The package base repository may already define them with different signatures or return types.with() explicitly.BindingResolutionException or container resolution errors. Confirm the service provider is registered and the contract-to-implementation mapping is correct.^2.0 and review patch release notes. Support-matrix changes can affect CI even when the package code itself is unchanged.How can I help you explore Laravel packages today?