1 | <?php |
||
29 | class Timeslot extends Model |
||
30 | { |
||
31 | /** |
||
32 | * The attributes that are mass assignable. |
||
33 | * |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $fillable = ['time_start', 'time_end']; |
||
37 | |||
38 | /** |
||
39 | * The attributes excluded from the model's JSON form. |
||
40 | * |
||
41 | * @var array |
||
42 | */ |
||
43 | protected $hidden = ['pivot', 'calendar']; |
||
44 | |||
45 | /** |
||
46 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
47 | */ |
||
48 | 8 | public function Calendar() |
|
52 | } |
||
53 |