option('model') ? $this->qualifyClass($this->option('model')) : 'Model'; return str_replace( 'DummyModel', $model, parent::buildClass($name) ); } /** * Get the destination class path. * * @param string $name * @return string */ protected function getPath($name) { $name = str_replace( ['\\', '/'], '', $this->argument('name') ); return $this->laravel->databasePath()."/factories/{$name}.php"; } /** * Get the console command options. * * @return array */ protected function getOptions() { return [ ['model', 'm', InputOption::VALUE_OPTIONAL, 'The name of the model'], ]; } }