Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
22 | class Tagged extends Model |
||
23 | { |
||
24 | protected $table = 'tagging_tagged'; |
||
25 | |||
26 | public $timestamps = false; |
||
27 | |||
28 | protected $fillable = ['tag_name', 'tag_slug']; |
||
29 | |||
30 | public function __construct(array $attributes = []) |
||
31 | { |
||
32 | parent::__construct($attributes); |
||
33 | |||
34 | $this->connection = config('tagging.connection'); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Morph to the tag |
||
39 | * |
||
40 | * @return MorphTo |
||
41 | */ |
||
42 | public function taggable() |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * Get instance of tag linked to the tagged value |
||
49 | * |
||
50 | * @return BelongsTo |
||
51 | */ |
||
52 | public function tag() |
||
57 | } |
||
58 | } |
||
59 |