hipsterjazzbo / Landlord

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

Hostname based ? #13

Closed abbasharoon closed 8 years ago

abbasharoon commented 8 years ago

Hi, I was wondering of it possible to use tenant_id based on hostname from a table. Can this package auto detect the hostname? I am terribly in need of this package and will need a quick ans if possible. Thanks in advance :+1:

abbasharoon commented 8 years ago

Also will it work on bulk insert as well? and if not, How can I get the tenant id from the landlord as in middleware, I am sending the id to package by querying it from database, it will be nice to use that id globally