You can create a second database connection (eg. 'user') in your config, and use Config::set('database.connections.user.username', $username)
and similar for the password.
You can then set models to use that database.
thank you :)
I have done the same:
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community