1 | <?php |
||
27 | class Document extends Model |
||
28 | { |
||
29 | use CrudTrait; |
||
30 | use HasTranslations; |
||
31 | |||
32 | /* |
||
33 | |-------------------------------------------------------------------------- |
||
34 | | GLOBAL VARIABLES |
||
35 | |-------------------------------------------------------------------------- |
||
36 | */ |
||
37 | |||
38 | protected $fillable = [ |
||
39 | 'type', |
||
40 | 'title', |
||
41 | 'body' |
||
42 | ]; |
||
43 | |||
44 | protected $translatable = [ |
||
45 | 'title', |
||
46 | 'body' |
||
47 | ]; |
||
48 | |||
49 | /* |
||
50 | |-------------------------------------------------------------------------- |
||
51 | | FUNCTIONS |
||
52 | |-------------------------------------------------------------------------- |
||
53 | */ |
||
54 | |||
55 | /* |
||
56 | |-------------------------------------------------------------------------- |
||
57 | | RELATIONS |
||
58 | |-------------------------------------------------------------------------- |
||
59 | */ |
||
60 | |||
61 | /* |
||
62 | |-------------------------------------------------------------------------- |
||
63 | | SCOPES |
||
64 | |-------------------------------------------------------------------------- |
||
65 | */ |
||
66 | |||
67 | /* |
||
68 | |-------------------------------------------------------------------------- |
||
69 | | ACCESORS |
||
70 | |-------------------------------------------------------------------------- |
||
71 | */ |
||
72 | |||
73 | public function getTranslatedTypeAttribute() |
||
77 | |||
78 | /* |
||
79 | |-------------------------------------------------------------------------- |
||
80 | | MUTATORS |
||
81 | |-------------------------------------------------------------------------- |
||
82 | */ |
||
83 | } |
||
84 |