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

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

Execute the console command.
public fire ( ) : mixed
Результат mixed
    public function fire()
    {
        $this->call('module:migrate-reset', ['module' => $this->getModuleName(), '--database' => $this->option('database'), '--force' => $this->option('force')]);
        $this->call('module:migrate', ['module' => $this->getModuleName(), '--database' => $this->option('database'), '--force' => $this->option('force')]);
        if ($this->option('seed')) {
            $this->call('module:seed', ['module' => $this->getModuleName()]);
        }
    }