We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e86a06a commit 03228bdCopy full SHA for 03228bd
src/IndexedRecord.php
@@ -19,7 +19,13 @@ class IndexedRecord extends Model
19
*/
20
public function __construct(array $attributes = [])
21
{
22
- $this->connection = Config::string('laravel-fulltext.db_connection');
+ $connection = Config::get('laravel-fulltext.db_connection');
23
+
24
+ if (!is_string($connection)) {
25
+ $connection = null;
26
+ }
27
28
+ $this->connection = $connection;
29
30
parent::__construct($attributes);
31
}
0 commit comments