Laravel package to facilitate repository design pattern implementation across multiple projects.
composer require lazyelephpant/repository
To generate a repository class without a specific model simply run the following command:
php artisan make:repository NameRepository
To generate a repository class for a specific model you may specify by defining the --model
:
php artisan make:repository NameRepository --model=User