hipsterjazzbo / Landlord

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

TenantModelNotFoundException doesn't get fired #38

Closed dennisver closed 7 years ago

dennisver commented 7 years ago

The TenantModelNotFoundException doesn't fire. Do I need to catch it somewhere?

If so; where and how?

hipsterjazzbo commented 7 years ago

Could you explain more? It fires for me all the time.

dennisver commented 7 years ago

It does work, my bad. It doesn't get fired when you try to access an object which you're not a tenant of. But that makes sense; this exception is about the Model itself, not about an instance of a model.

hipsterjazzbo commented 7 years ago

In v2 it's a bit smarter too.