/** * Execute the console command. * * @return void */ public function fire() { $destination = $this->getPath() . DS . 'Reminders.php'; if (!$this->files->exists($destination)) { $this->files->copy(__DIR__ . DS . 'stubs' . DS . 'controller.stub', $destination); $this->info('Password reminders controller created successfully!'); $this->comment("Route: Route::controller('password', 'RemindersController');"); } else { $this->error('Password reminders controller already exists!'); } }