// Default name space is the app namespace
$this->namespace = APP_NAMESPACE;
// get default database group
$config =
config(Database::
class);
$this->group =
$config->defaultGroup;
unset($config);
// If no db connection passed in, use
// default database group.
$this->db =
db_connect($db);
} /**
* Locate and run all new migrations
*
* @return bool
*
* @throws ConfigException
* @throws RuntimeException
*/
public function latest(?string
$group = null
) {