Coming in the next version of Lucid: First-class support for Multi-Tenant applications!
With built-in Dependency Injection, you can effortlessly create a custom QueryClient that automatically applies the right query constraints for each tenant.
Learn more 👇
With built-in Dependency Injection, you can effortlessly create a custom QueryClient that automatically applies the right query constraints for each tenant.
Learn more 👇
Comments
2. Bind this instance of the QueryClient to the container.
For example, here I am fetching all the posts for a given tenant without remembering to always add this clause.
To mitigate that, we are removing the top-level `orWhere` method from the query builder, and you will be forced to always define a `orWhereGroup` to write or where conditions.