Support the ongoing development of Laravel.io →
Authentication Security Database
Last updated 1 year ago.
0

Ok now it workes, i write my own auth method! The problem was, that all first tenant users are called "admin@account", an the controller searched only username and passwort, so the username was no unique .> and the laravel login doesn't work 8) -> Nice to know!

Now my problem is, that i need a constant database connection for the logged in user, to his tenant database, are there any turorials? In the auth controller i use: Config::set('database.connections.mysql.database', $acc_db->account_db); DB::reconnect(); But this works only for one statement...

0

Have you solved this problem yet?

0

show your database structure and example data

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.