Multi-Tenancy in Laravel with PostgreSQL Schemas: A Migration Story
Introduction
Row-level filtering is common for multi-tenancy, but what if you need stronger isolation? At Reimpact's platform, we're migrating towards PostgreSQL schemas to achieve true tenant separation, leveraging Laravel, Filament, and the middleware pattern.
This post details our approach to dynamically setting the PostgreSQL search_path for each tenant, ensuring data isolation and