lundi 5 décembre 2016

How to change database name before authentication in laravel 5.1

I have multiple database. I want to change db name based on the url dynamically. How can I set particular db before authentication.

I want to change database from authentication to through out the application. For ex. If url is like http://ift.tt/2gsUWkY then it will select database company1

If url is like http://ift.tt/2gYbt3y then it will select database company2

Based on the selected database authentication will be done and selected database will be used for that user.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire