rajinha92 / model-generator
This package reads a database and generate Models and Migrations
dev-master
2016-12-29 13:57 UTC
Requires
- php: >=7
- laravel/framework: ^5.2
This package is auto-updated.
Last update: 2024-10-29 05:09:41 UTC
README
This package generates models and migrations (including FK migrations)
Service Provider
\Rafael\ModelGenerator\GeneratorServiceProvider::class,
artisan command
php artisan generate:model --migration --namespace=Models
the two options are optional, when not provided --migration then migrations will not be generated, --namespace will always be under app folder and your App\ namespace (or whatever you called it), when omitted models will be generated in app folder