treggats / crud-repository-generator
This package is abandoned and no longer maintained.
No replacement package was suggested.
Repository generator
Package info
github.com/Treggats/crud-repository-generator
Type:command
pkg:composer/treggats/crud-repository-generator
1.0.5
2021-07-20 10:20 UTC
Requires
- php: >=7.1
- laravel/framework: ^6.18.35|^7.30|^8
- laravel/tinker: ~1.0
This package is auto-updated.
Last update: 2024-07-17 10:53:35 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"