MaximoMartinezSoria
3 months ago
553
3
Laravel

Handle databases users in multi-tenant app

Posted 3 months ago by MaximoMartinezSoria

Hi there,

I'm using stancl/tenancy package to solve multi-tenant logic.

How should I handle sql users?

I don't think having a user with all privileges that can interacts with all databases is a good practice.

Should I create a new sql user for each tenant? Can I do it programatically?

Thanks!

Please sign in or create an account to participate in this conversation.