treggats / crud-repository-generator
Repository generator
Installs: 620
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:command
Requires
- php: >=7.1
- laravel/framework: ^6.18.35|^7.30|^8
- laravel/tinker: ~1.0
This package is auto-updated.
Last update: 2024-04-13 09:10:31 UTC
README
With this package you can generate simple CRUD repositories, with or without a contract.
Usage
Without contract for the User model.
php artisan make:repository UserRepository
With contract for the User model.
php artisan make:repository -c UserRepository
Config
If you have a custom location for your models, you can publish the config. The config defaults to "App\Models"
php artisan vendor:publish --provider="Treggats\CrudRepositoryGenerator\CrudRepositoryGeneratorServiceProvider"