From 225b22c03ecbf34e6464a972498587952b202656 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Mon, 29 Aug 2022 16:47:10 +0200 Subject: [PATCH] Add note instructing to make sure the Scout config file is published --- source/docs/v3/integrations/scout.blade.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/docs/v3/integrations/scout.blade.md b/source/docs/v3/integrations/scout.blade.md index c9f7b48..45f7c3d 100644 --- a/source/docs/v3/integrations/scout.blade.md +++ b/source/docs/v3/integrations/scout.blade.md @@ -5,7 +5,9 @@ section: content --- # Laravel Scout {#laravel-scout} -After [installing Scout](https://laravel.com/docs/9.x/scout#installation), make sure the models of all tenants aren't being imported in the same index by prefixing the model indices with the current tenant's key. You can achieve that by adding a listener with this code to the TenancyInitialized event in your TenancyServiceProvider: +> Note: Make sure the Scout config file is published + +After [installing Scout](https://laravel.com/docs/9.x/scout#installation), make sure the models of all tenants aren't being imported in the same index by prefixing the model indices with the current tenant's key. You can achieve that by adding a listener with this code to the `TenancyInitialized` event in your `TenancyServiceProvider`: ```php config(['scout.prefix' => tenant()->getTenantKey()]);