hipsterjazzbo / Landlord

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

Validation rules not being scoped #51

Closed fgilio closed 7 years ago

fgilio commented 7 years ago

Hi! Just like the tittle says, validation rules are not being scoped. This results in errors when, for example, a unique rule is applied and there is already a same value from another Tenant.

hipsterjazzbo commented 7 years ago

Validation rules do not go through Eloquent. If you need to add condition (such as a team_id) to your validation, see the docs for how to do that.

fgilio commented 7 years ago

Yes, that's what I ended up doing. Thanks anyway!