/** * Execute the console command. * * @return mixed */ public function fire() { $path = $this->getPath(); $options = ['filter' => $this->option('filter'), 'object' => $this->option('object'), 'prefix' => $this->option('prefix')]; if ($this->generator->make($this->option('path'), $this->argument('name'), $options)) { return $this->info("Created {$path}"); } $this->error("Could not create {$path}"); }