src/Controllers/AppController.php
protected function loadMigrations()
    {
        $migrationsDir = $this->docRoot . '/src/Database/Migrations';
        foreach (scandir($migrationsDir) as $file) {
            if ($file !== '.' && $file !== '..') {
                require "{$migrationsDir}/{$file}";
            }
        }
    }
protected function loadMigrations()
    {
        $migrationsDir = $this->docRoot . '/src/Database/Migrations';
        foreach (scandir($migrationsDir) as $file) {
            if ($file !== '.' && $file !== '..') {
                require "{$migrationsDir}/{$file}";
            }
        }
    }
protected function loadMigrations ( ) { $ migrationsDir = $ this -> docRoot . '/src/Database/Migrations' ; foreach ( scandir ( $ migrationsDir ) as $ file ) { if ( $ file !== '.' && $ file !== '..' ) { require "{$migrationsDir}/{$file}" ; } } }
Load migrations.
Load migrations .