hipsterjazzbo / Landlord

A simple, single database multi-tenancy solution for Laravel 5.2+
MIT License
614 stars 138 forks source link

No tenantId #19

Closed tpharaoh closed 8 years ago

tpharaoh commented 8 years ago

I added Landlord::addTenant($tenantColumn, $tenantId) to the Authenticate middleware, since I wanted this on every authenticated page.

I get: Undefined variable: tenantColumn

cargie commented 8 years ago

$company = Company::first(); Landlord::addTenant('company_id', $company->id);