Closed ghost closed 8 years ago
We could add a getter and a setter for a property on the BaseRepository and call setConnection on the model underneath.
setConnection
A quick example could be $repository->setConnection('sqlsrv')->....
$repository->setConnection('sqlsrv')->...
I'd add a default fallback configuration key to rinvex.repository.php
rinvex.repository.php
Implemented & merged into develop, @ionut-tanasa you can test it & tell me if there's any notes 👍
develop
@Omranic awesome! Will test soon. I have just the right example at work :)
We could add a getter and a setter for a property on the BaseRepository and call
setConnection
on the model underneath.A quick example could be
$repository->setConnection('sqlsrv')->...
.I'd add a default fallback configuration key to
rinvex.repository.php