1 | <?php |
||
19 | class Translation extends Model |
||
20 | { |
||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | protected $table = 'translations'; |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public $timestamps = false; |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | protected $fillable = [ |
||
35 | 'locale_id', |
||
36 | 'translation_id', |
||
37 | 'translatable_id', |
||
38 | 'translatable_type', |
||
39 | 'translatable_source', |
||
40 | ]; |
||
41 | |||
42 | /** |
||
43 | * Translatable polymorphic relationship. |
||
44 | * |
||
45 | * @return \Illuminate\Database\Eloquent\Relations\MorphTo |
||
46 | */ |
||
47 | public function translatable(): MorphTo |
||
51 | |||
52 | public function source(): MorphTo |
||
56 | |||
57 | /** |
||
58 | * Locale relationship. |
||
59 | * |
||
60 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
61 | */ |
||
62 | public function locale() |
||
66 | } |
||
67 |