luizhenriqueferreira / laravel-repository
A simple package to create a make:repository command for Laravel
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^7.2.5
- illuminate/database: ^6.20.14|^7.0|^8.0
- illuminate/support: ^6.20.14|^7.0|^8.0
This package is auto-updated.
Last update: 2024-09-13 09:53:58 UTC
README
Laravel package to facilitate repository design pattern.
Plain Repository Class
To generate a repository class without a specific model simply run the following command:
php artisan make:repository NameRepository
Model Repository Class
To generate a repository class for a specific model you may specify by defining the --model
:
php artisan make:repository NameRepository --model=Name