hipsterjazzbo / Landlord

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

Support for complex tenacy rules #76

Open jaaksarv opened 7 years ago

jaaksarv commented 7 years ago

It would be nice to have support to more complex multi-tenancy rules. Most of my models work nicely with tenant_id, but one table has additional is_public flag. So record can be accessed by user.id==record.tenant_id OR record.is_public==TRUE.

darrencoutts118 commented 7 years ago

+1