Hello,
I search for a good package to write a multitenancy application.
And I have found these packages.
https://tenancyforlaravel.com/
https://tenancy.dev/
https://spatie.be/docs/laravel-multitenancy
Do you know these packages ? Which one would you suggest me ?
I have also followed the series on Laracast.
https://laracasts.com/series/multitenancy-in-practice/
It seems to be interesting to write my own tenancy logic.
Furthermore what parameters are to be taken into account to choose if I need a single or multi database tenancy application ?
What I absolutely need is that all users are in a central database.
-
because each user can work with several tenants. How can I explain ? a user is a freelance who works for several companies and he has to see some datas shared by these companies, but only if he works for these companies.
-
and each personal dashboard (for each user) will show all its missions from each tenant.
With theses contraints, is it better to have a single database ? I think yes. But perhaps it's possible to do another way ?
Thanks a lot for all your suggestions.
V