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