diff --git a/source/docs/v3/integrations/scout.blade.md b/source/docs/v3/integrations/scout.blade.md index 45f7c3d..9d82972 100644 --- a/source/docs/v3/integrations/scout.blade.md +++ b/source/docs/v3/integrations/scout.blade.md @@ -13,6 +13,12 @@ After [installing Scout](https://laravel.com/docs/9.x/scout#installation), make config(['scout.prefix' => tenant()->getTenantKey()]); ``` +And to reset the prefix as tenancy ends, add a listener with this code to the `TenancyEnded` event: + +```php +config(['scout.prefix' => '']); +``` + After that, you can import your existing records for each tenant using the `tenants:run` command: ```