1 | <?php |
||
11 | class Discussion extends UuidModel |
||
12 | { |
||
13 | use BelongsToMinistryTrait; |
||
14 | use CommentableTrait; |
||
15 | use ImageableTrait; |
||
16 | use StorageTrait; |
||
17 | |||
18 | protected $table = 'fg_discussions'; |
||
19 | |||
20 | /** |
||
21 | * Relates this discussion to models using it. |
||
22 | * |
||
23 | * @return \Illuminate\Database\Eloquent\Relations\MorphTo |
||
24 | */ |
||
25 | public function discussable() |
||
29 | |||
30 | /** |
||
31 | * The directory name for the folder holding images. |
||
32 | * |
||
33 | * @return string |
||
34 | */ |
||
35 | public function filesDir() |
||
39 | |||
40 | /** |
||
41 | * The name(s) of image(s). |
||
42 | * |
||
43 | * @return mixed |
||
44 | */ |
||
45 | public function getFileName() |
||
51 | |||
52 | /** |
||
53 | * The dimensions the discussion images has. |
||
54 | * |
||
55 | * @return array |
||
56 | */ |
||
57 | public function getImageDimensions() |
||
61 | } |
||
62 |