Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class VocabTerm extends Model |
||
8 | { |
||
9 | protected $casts = [ |
||
10 | 'translation' => 'json', |
||
11 | ]; |
||
12 | protected $fillable = [ |
||
13 | 'term', 'translation', 'namespace', |
||
14 | ]; |
||
15 | |||
16 | public function __construct(array $attributes = []) |
||
17 | { |
||
18 | $connection = config('trans-helper.database.connection') ?: config('database.default'); |
||
19 | $this->setConnection($connection); |
||
20 | $this->setTable(config('trans-helper.database.table.term')); |
||
21 | parent::__construct($attributes); |
||
22 | } |
||
23 | |||
24 | public function cites() |
||
33 | ); |
||
34 | } |
||
35 | |||
36 | public function sweep() |
||
43 |