forDisabledMigrations example

/** * Locate and run all new migrations * * @return bool * * @throws ConfigException * @throws RuntimeException */
    public function latest(?string $group = null)
    {
        if ($this->enabled) {
            throw ConfigException::forDisabledMigrations();
        }

        $this->ensureTable();

        if ($group !== null) {
            $this->groupFilter = $group;
            $this->setGroup($group);
        }

        $migrations = $this->findMigrations();

        
Home | Imprint | This part of the site doesn't use cookies.