From c3458bf16bffc52528691dba35203fda174a70e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Wed, 27 Oct 2021 08:59:27 +0200 Subject: [PATCH] allow use of env var UUID for now --- src/Provider.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()