Nwidart\Modules\Commands\MigrateRollbackCommand::fire PHP Метод

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

Execute the console command.
public fire ( ) : mixed
Результат mixed
    public function fire()
    {
        $this->module = $this->laravel['modules'];
        $name = $this->argument('module');
        if (!empty($name)) {
            $this->rollback($name);
            return;
        }
        foreach ($this->module->getOrdered($this->option('direction')) as $module) {
            $this->line('Running for module: <info>' . $module->getName() . '</info>');
            $this->rollback($module);
        }
    }