We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7932f38 + e95e581 commit b9af581Copy full SHA for b9af581
src/Model/Tagged.php
@@ -16,10 +16,14 @@ class Tagged extends Eloquent
16
public function __construct(array $attributes = array())
17
{
18
parent::__construct($attributes);
19
-
+
20
+ if (function_exists('config') && $connection = config('tagging.connection')) {
21
+ $this->connection = $connection;
22
+ }
23
24
$this->taggingUtility = app(TaggingUtility::class);
25
}
26
27
/**
28
* Morph to the tag
29
*
@@ -29,7 +33,7 @@ public function taggable()
33
30
34
return $this->morphTo();
31
35
32
36
37
38
* Get instance of tag linked to the tagged value
39
@@ -41,4 +45,4 @@ public function tag()
41
45
return $this->belongsTo($model, 'tag_slug', 'slug');
42
46
43
47
44
-}
48
+}
0 commit comments