/** * @return void */ public function handle() { $namespace = ConfigurationHelper::getDynamicValue('generator.model.defaults.namespace', ['APP_NAME' => rtrim(Container::getInstance()->getNamespace(), '\\')]); if (Config::get('generator.interaction.namespace')) { $namespace = $this->generator->ask('Model Namespace', $namespace); } $this->model->setNamespace($namespace); }
/** * @return void */ public function handle() { $extends = ConfigurationHelper::getDynamicValue('generator.model.defaults.extends', ['APP_NAME' => rtrim(Container::getInstance()->getNamespace(), '\\')]); if (Config::get('generator.interaction.extends')) { $extends = $this->generator->ask('Model Parent Class', $extends); } $this->model->setExtends($extends); }