David Carrdcblogdev.hashnode.devยทFeb 9, 2018Laravel apply a query constraint with global scopesImagine your building a multi-tenancy application, in your controller your using a Contacts model every single time you pull a query out it needs constraining to the current tenant like this: $contacts = Contact::where('tenant_id', session('tenant_...80 readsAdd a thoughtful commentNo comments yetBe the first to start the conversation.