treggats/crud-repository-generator

This package is abandoned and no longer maintained. No replacement package was suggested.

Repository generator

Installs: 621

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:command

pkg:composer/treggats/crud-repository-generator

1.0.5 2021-07-20 10:20 UTC

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"