| 1 | <?php |
||
| 13 | class Template extends UuidModel |
||
| 14 | { |
||
| 15 | use HasManyBuildRequests; |
||
| 16 | use ImageableTrait; |
||
| 17 | use CommentableTrait; |
||
| 18 | use StorageTrait; |
||
| 19 | use ActiveTrait; |
||
| 20 | |||
| 21 | protected $table = 'fg_templates'; |
||
| 22 | protected $guarded = ['id']; |
||
| 23 | |||
| 24 | protected $hidden = [ |
||
| 25 | 'created_at', |
||
| 26 | 'updated_at', |
||
| 27 | ]; |
||
| 28 | |||
| 29 | public function getNameAttribute($val) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | public function filesDir() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function getFileName() |
||
| 51 | |||
| 52 | public function getImageDimensions() |
||
| 56 | } |
||
| 57 |