From Dev.to
AND binds tighter than OR: the tenant filter bug I fixed in three places
Single-database multi-tenancy in Laravel usually starts with one line: a global scope that adds where tenant_id = ? to every query. It works in the demo. Then someone writes a query with an OR in it....
