hipsterjazzbo / Landlord

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

Landlord enabled/disabled variables are private instead of protected. #14

Closed 0xn3bs closed 8 years ago

0xn3bs commented 8 years ago

I'd like to create my own scope based off of the Landlord scope.

Unfortunately, it seems that enabled and disabled are private so I can't bail out of apply early.

The reason I'd like this functionality is I have a scenario where I'd like optional tenant scoping on a table. I.e. there are roles in system that are shared globally (basically presets), and then there are roles that are tied to specific tenants. Roles that are shared globally do not have a tenant_id but they're on the same table.