5
I’ve been researching about Saas and Multi-tenancy but has little material in Portuguese. I saw that it is possible to make a database for each company, but my question is:
You can make a unique web system for all clients (using PHP+Laravel+Mysql) with a Banco de dados
for each company BUT make a Banco de dados
only of "empresas
"(containing a table "users
" with the fields of empresa
, usuário
, senha
, and bd_empresa
) using this comic book of empresa
only to check the login and if the data is right log into the application using that company’s BD?
I don’t know if I could make it clear, I hope so.
Your question seems quite clear, but also very broad. I don’t know how far the community can actually help in this case. I generally believe that your proposal is feasible. In practice there may be some challenges (I think more conceptual than technical) that should be addressed specifically and individually.
– Diego Rafael Souza
It gives yes, I do not use and I do not have knowledge in PHP frameworks, I do everything in the nail, in PDO, but in my system it is basically like this, each company has a specific database, and they share a common database, in the specific database, contains the tables of each one, and in the common bank contain information of public access and exclusive of the system, both for login, and for exactly the same way to search the bank of each one. The moment the company executes the login, it searches for its BD, and this information is passed to the constructor method of the class
– Wees Smith