public function fire()
{
$names = $this->input->getArgument('names');
/** @var RecycleBinInterface $bin */
foreach ($this->bins($names) as $bin) {
$this->info(' name: ' . $bin::name());
$this->info(' summary: ' . $bin::summary());
}
}
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); }