So Tapestry has its default DatabaseServiceProvider.php with the below code inside.
$this->app->singleton('db.factory', function ($app) {
return new ConnectionFactory($app);
});
I want to be able to use the db.factory facade created by this to make a new connection. But when I call
db.factory::make($config,$factory);
Of course this doesn't work, I get an error:
Use of undefined constant db - assumed 'db'
How can I do this?