public function fire() { $names = $this->input->getArgument('names'); $bins = $this->bins($names); $this->info('Clean up the recycle bin below.'); $this->info('----------------------------------'); parent::fire(); $this->info('----------------------------------'); if ($this->confirm('This action can not be undone. Do you want to continue? [yes|no]') == false) { $this->error('canceled'); return null; } $trashManager = app('xe.trash'); $trashManager->clean($bins); }