Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | class Image extends UuidModel |
||
8 | { |
||
9 | use CommentableTrait; |
||
10 | |||
11 | protected $table = 'fg_images'; |
||
12 | |||
13 | /** |
||
14 | * This relates all models to the image. |
||
15 | * @return \Illuminate\Database\Eloquent\Relations\MorphTo |
||
16 | */ |
||
17 | public function imageable() |
||
18 | { |
||
19 | return $this->morphTo(); |
||
20 | } |
||
21 | |||
22 | public function getCaptionAttribute($val) |
||
25 | } |
||
26 | } |
||
27 |