1 | <?php |
||
8 | class Album extends Model |
||
9 | { |
||
10 | use SoftDeletes; |
||
11 | |||
12 | /** |
||
13 | * The table used by this model |
||
14 | * |
||
15 | * @var string |
||
16 | **/ |
||
17 | protected $table = 'albums'; |
||
18 | |||
19 | /** |
||
20 | * The attributes that should be mutated to dates. |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $dates = ['deleted_at']; |
||
25 | |||
26 | /** |
||
27 | * Defining the relationship, an album could have many photos |
||
28 | * |
||
29 | * @return \JeroenG\LaravelPhotoGallery\Models\Photo |
||
30 | **/ |
||
31 | public function photos() |
||
35 | |||
36 | } |