diff --git a/src/Provider.php b/src/Provider.php index a402711..6f9598d 100644 --- a/src/Provider.php +++ b/src/Provider.php @@ -41,7 +41,12 @@ class Provider extends AbstractServiceProvider return $builder->build(); }); - $this->container->instance('blomstra.search.elastic_index', Arr::get($elastic, 'index', 'flarum')); + $index = env('UUID') ?? Arr::get($elastic, 'index', 'flarum'); + + $this->container->instance( + 'blomstra.search.elastic_index', + $index + ); } public function boot()