src/Database/Migrator.php
protected function runClosureMigration($migration, $direction = 'up')
    {
        if (is_array($migration) && array_key_exists($direction, $migration)) {
            call_user_func($migration[$direction], $this->schemaBuilder);
        } else {
            throw new Exception('Migration file should contain an array with up/down.');
        }
    }
protected function runClosureMigration($migration, $direction = 'up')
    {
        if (is_array($migration) && array_key_exists($direction, $migration)) {
            call_user_func($migration[$direction], $this->schemaBuilder);
        } else {
            throw new Exception('Migration file should contain an array with up/down.');
        }
    }
protected function runClosureMigration ( $ migration , $ direction = 'up' ) { if ( is_array ( $ migration ) && array_key_exists ( $ direction , $ migration ) ) { call_user_func ( $ migration [ $ direction ] , $ this -> schemaBuilder ) ; } else { throw new Exception ( 'Migration file should contain an array with up/down.' ) ; } }
Runs a closure migration based on the migrate direction.

@param        $migration
@param string $direction
@throws Exception
Runs a closure migration based on the migrate direction .