Fenos\Notifynder\Artisan\DeleteCategory::fire PHP Метод

fire() публичный Метод

Execute the console command.
public fire ( ) : mixed
Результат mixed
    public function fire()
    {
        $identifier = $this->argument('identifier');
        if ($this->isIntegerValue($identifier)) {
            $delete = $this->notifynderCategory->delete($identifier);
        } else {
            $delete = $this->notifynderCategory->deleteByName($identifier);
        }
        if (!$delete) {
            $this->error('Category Not found');
            return false;
        }
        $this->info('Category has been deleted');
    }