/** * Execute the console command. * * @return mixed */ public function handle() { if ($this->confirm('Do you want list the existing roles? [y|N]')) { $headers = ['Name', 'Level']; $roles = $this->roleCommand->getAll(['name', 'level'])->toArray(); $this->table($headers, $roles); } $name = $this->ask('Which role do you want to delete ?'); if ($this->confirm('Do you wish to continue? [y|N]')) { $this->roleCommand->delete($name); } }