public function generateModel()
    {
        if (!$this->confirm('Do you want to create a model?')) {
            return;
        }

        $this->console->call('generate:model', [
            'name' => $this->getEntity(),
            '--fillable' => $this->getFields(),
            '--force' => $this->console->option('force'),
        ]);
    }
public function generateModel()
    {
        if (!$this->confirm('Do you want to create a model?')) {
            return;
        }

        $this->console->call('generate:model', [
            'name' => $this->getEntity(),
            '--fillable' => $this->getFields(),
            '--force' => $this->console->option('force'),
        ]);
    }
public function generateModel ( ) { if ( ! $ this -> confirm ( 'Do you want to create a model?' ) ) { return ; } $ this -> console -> call ( 'generate:model' , [ 'name' => $ this -> getEntity ( ) , '--fillable' => $ this -> getFields ( ) , '--force' => $ this -> console -> option ( 'force' ) , ] ) ; }
Generate model.
Generate model .