Answer the question
In order to leave comments, you need to log in
How to dynamically change the value of the $connection property in a Laravel model?
The application works with two databases.
It is necessary, depending on the condition, to automatically change the value of the property $connection
in the models in order to determine which database to connect to at this particular moment
Thank you in advance
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question