| 1 | <?php namespace Modules\Media\Entities; |
||
| 6 | class File extends Model |
||
| 7 | { |
||
| 8 | use Translatable; |
||
| 9 | |||
| 10 | protected $table = 'media__files'; |
||
| 11 | public $translatedAttributes = ['description', 'alt_attribute', 'keywords']; |
||
| 12 | protected $fillable = [ |
||
| 13 | 'description', |
||
| 14 | 'alt_attribute', |
||
| 15 | 'keywords', |
||
| 16 | 'filename', |
||
| 17 | 'path', |
||
| 18 | 'extension', |
||
| 19 | 'mimetype', |
||
| 20 | 'width', |
||
| 21 | 'height', |
||
| 22 | 'filesize', |
||
| 23 | 'folder_id', |
||
| 24 | ]; |
||
| 25 | function albums() |
||
| 33 | } |
||
| 34 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.