jobins/laravel-repository
A Laravel package that implements the repository pattern, giving you base repository classes to separate data access from business logic. It helps keep Eloquent models out of controllers and services, making code cleaner, more testable, and easier to swap or mock data sources as your application gro...
php -v and check composer.json for the framework constraint.composer require vendor/package:^1.0
Replace vendor/package with the actual Composer name.php artisan package:discover
php artisan about
php artisan vendor:publish --provider="Vendor\Package\PackageServiceProvider"
composer.json inside the package for illuminate/* and PHP constraints.register() and boot() methods.php artisan tinker
>>> app(\Vendor\Package\MainClass::class);
Then try the smallest documented operation, preferably a read-only call or a test double, and only afterwards wire it into a controller, command, or job.app() and facades out of domain code where possible..env. Avoid hard-coding package options in application code.scoped() bindings over singletons if the package holds request state.Http::fake() and assert the expected outgoing requests.composer update vendor/package --with-dependencies
php artisan config:clear
php artisan cache:clear
php artisan test
Run the full application test suite, not only package-specific tests.illuminate/* constraint before upgrading. Use:
composer why-not vendor/package 1.0.6
to diagnose version conflicts.extra.laravel.dont-discover in the root composer.json and confirm the provider is registered manually in config/app.php if needed.php artisan config:clear locally and php artisan config:cache in production. A stale cached config is a frequent source of “why is this option ignored?” debugging.scoped() bindings or reset the instance in a listener.app()->bound(...), php artisan tinker, and the exception page to confirm which implementation is being resolved. Check storage/logs/laravel.log for package-emitted errors.vendor/; changes will be lost on the next composer update.^1.0, read the changelog before each minor release, and keep a smoke test around the package’s primary operation so regressions are caught quickly.How can I help you explore Laravel packages today?