First of all, thanks for your time. I don't usually ask questions, but I've been stuck with this problem for several days.
I am making a SPA application in Laravel multi-tenant. I use passport to authenticate in the api. For the multitenant I use this package https://tenancyforlaravel.com/
Everything works fine in the API except broadcasting, when trying to connect to a channel it tries to connect to the central database instead of the tenant database.
https://flareapp.io/share/87nxoXym#F57
It also sometimes happens that the central login page throws the same error (where I shouldn't have to make that connection)
First of all, thank you very much, I don't know if I need to provide more files or code.