Skip to content

Commit 8fc8b02

Browse files
committed
fix: make connection nullable
1 parent e86a06a commit 8fc8b02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IndexedRecord.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class IndexedRecord extends Model
1919
*/
2020
public function __construct(array $attributes = [])
2121
{
22-
$this->connection = Config::string('laravel-fulltext.db_connection');
22+
$this->connection = Config::string('laravel-fulltext.db_connection') ?? null;
2323

2424
parent::__construct($attributes);
2525
}

0 commit comments

Comments
 (0)