title: How to use Multiple database in Laravel and database connection change with User?
body: <p>I want to create user base database, for example in my system there are tow user A and B. I have a master Database and two database user_a (for user A) and user_b (for user B). In master Database i have the all users information. Now what i want, when user A logged in system it access master database and user_a database, and when user B logged in database connection should be master database and user_b database.</p>