protected function createMigration($class) { $class = trim($class, '\\'); if (strpos($class, '\\') === false) { $file = $this->migrationPath . DIRECTORY_SEPARATOR . $class . '.php'; require_once $file; } return new $class(); }