Skip to content

Commit

Permalink
fix: make connection nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Rocksheep committed Nov 15, 2024
1 parent e86a06a commit 8fc8b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IndexedRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8fc8b02

Please sign in to comment.