Package Data | |
---|---|
Maintainer Username: | CeddyG |
Package Create Date: | 2017-08-11 |
Package Last Update: | 2020-04-22 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-16 15:01:00 |
Package Statistics | |
---|---|
Total Downloads: | 483 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 1 |
Total Forks: | 1 |
Total Open Issues: | 1 |
composer require ceddyg/clara-entity-generator
Add to your providers in 'config/app.php'
CeddyG\ClaraEntityGenerator\EntityGeneratorServiceProvider::class,
Then to publish the files.
php artisan vendor:publish --provider="CeddyG\ClaraEntityGenerator\EntityGeneratorServiceProvider"
You can select all the table in it and define what file you want :
You have just to define the relations, if they are hasMany or belongsToMany relations and what files you want to create
You can edit the generator to custom your files. The generator is in app/Services/Clara/Generator and the stubs are in ressources/stubs.