Mercurial > packages > magicforger
diff src/Generator/Generator.php @ 12:4bb4daa9e3f1 development
Working with the new FileModifier
| author | luka |
|---|---|
| date | Wed, 24 Apr 2024 19:52:35 -0400 |
| parents | 6468684362c2 |
| children | 7ee152c22478 |
line wrap: on
line diff
--- a/src/Generator/Generator.php Tue Jun 27 20:16:55 2023 -0400 +++ b/src/Generator/Generator.php Wed Apr 24 19:52:35 2024 -0400 @@ -49,7 +49,7 @@ /* $this->input->setOption('seed', true); */ /* $this->input->setOption('migration', true); */ $this->input->setOption('controller', true); - /* $this->input->setOption('model', true); */ + $this->input->setOption('model', true); } /* if ($this->option('factory')) { */ @@ -68,9 +68,9 @@ $this->createController(); } - /* if ($this->option('model')) { */ - /* $this->createModel(); */ - /* } */ + if ($this->option('model')) { + $this->createModel(); + } } @@ -84,6 +84,7 @@ return [ ['all', 'a', InputOption::VALUE_NONE, 'Generate a migration, seeder, factory, policy, resource controller, and form request classes for the table.'], ['controller', 'c', InputOption::VALUE_NONE, 'Generate a controller class for the table.'], + ['model', 'm', InputOption::VALUE_NONE, 'Generate a controller class for the table.'], ]; }
