| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Album extends UuidModel |
||
| 13 | { |
||
| 14 | use ImageableTrait, BelongsToMinistryTrait, StorageTrait, TitleTrait, CommentableTrait; |
||
| 15 | |||
| 16 | protected $table = 'fg_albums'; |
||
| 17 | |||
| 18 | //****************************************************************************// |
||
| 19 | //***************************** MODEL ATTRIBUTES *****************************// |
||
| 20 | //****************************************************************************// |
||
| 21 | public function getNameAttribute($val) |
||
| 22 | { |
||
| 23 | return ucwords($val); |
||
| 24 | } |
||
| 25 | |||
| 26 | //****************************************************************************// |
||
| 27 | //***************************** MODEL RELATIONSHIPS *****************************// |
||
| 28 | //****************************************************************************// |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The name of the directory in storage that has files for this model. |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | public function filesDir() |
||
| 35 | { |
||
| 36 | return 'gallery'; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * The file name fo this model. |
||
| 41 | * @return mixed |
||
| 42 | */ |
||
| 43 | public function getFileName() |
||
| 46 | } |
||
| 47 | |||
| 48 | public function getImageDimensions() |
||
| 53 |