| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace App\Console\Commands;
- class MakeModelCommand extends \Illuminate\Foundation\Console\ModelMakeCommand
- {
- protected function getStub()
- {
- if ($this->option('pivot')) {
- return parent::getStub();
- }
- return __DIR__ . '/stubs/model.stub';
- }
- public function handle()
- {
- if (parent::handle() === false && ! $this->option('force')) {
- return false;
- }
- if ($this->option('all')) {
- $this->input->setOption('service', true);
- }
- if ($this->option('service')) {
- $this->createService();
- }
- }
- public function createService()
- {
- }
- }
|