1 | <?php |
||
17 | class TermContainer extends Model |
||
18 | { |
||
19 | /** |
||
20 | * @var bool Indicates if the model should be timestamped. |
||
21 | */ |
||
22 | public $timestamps = false; |
||
23 | |||
24 | /** |
||
25 | * @var string The table associated with the model. |
||
26 | */ |
||
27 | protected $table = 'taxonomy_terms'; |
||
28 | |||
29 | /** |
||
30 | * @var array The attributes that are mass assignable. |
||
31 | */ |
||
32 | protected $fillable = ['vocabulary_id', 'type']; |
||
33 | |||
34 | /** |
||
35 | * All translations available for this term. |
||
36 | * |
||
37 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
38 | */ |
||
39 | 174 | public function translations() |
|
43 | |||
44 | /** |
||
45 | * The vocabulary this term is linked to. |
||
46 | * |
||
47 | * @codeCoverageIgnore |
||
48 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
49 | */ |
||
50 | public function vocabulary() |
||
54 | } |
||
55 |