From 8fc8b02c9c5ba7fc6fb29767b32612f1ae42d6d2 Mon Sep 17 00:00:00 2001 From: marinusvanvelzen Date: Fri, 15 Nov 2024 16:41:31 +0100 Subject: [PATCH] fix: make connection nullable --- src/IndexedRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IndexedRecord.php b/src/IndexedRecord.php index 1b83221..f4751b7 100644 --- a/src/IndexedRecord.php +++ b/src/IndexedRecord.php @@ -19,7 +19,7 @@ class IndexedRecord extends Model */ public function __construct(array $attributes = []) { - $this->connection = Config::string('laravel-fulltext.db_connection'); + $this->connection = Config::string('laravel-fulltext.db_connection') ?? null; parent::__construct($attributes); }