I am using http://ift.tt/2biGcSi single database multi-tenancy solution for Laravel 5.2+. I have a companies table, and all other tables have a company_id column.
I'm not sure how to implement the call Landlord::addTenant($tenantColumn, $tenantId) in a global Middleware, in an auth system or in the constructor of a base controller... I'm confused...
How do I do that?
Is the parameter $tenantColumn equivalent to the company_id column of each of the tables?
Is the parameter $tenantId refers to the id of each company contained in the column company_id?
thank you!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire