Creating methods are missing when using multiple databases
nanernunes opened this issue · comments
Naner Nunes commented
With multiple databases, when you define a connection name through MyModel.on('connection_name')
the method returns a QueryBuilder where I can't find creating methods like create, first_or_create.
The methods to fetch data still work as well - (get, first).
Is there a way to access those methods using custom connections with .on()
?