| 1 | <?php |
||
| 24 | class Calendar extends Model |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * The attributes that are mass assignable. |
||
| 28 | * |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | protected $fillable = ['name', 'enabled']; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
| 35 | */ |
||
| 36 | public function employee() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
| 43 | */ |
||
| 44 | 24 | public function timeslots() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @return \Illuminate\Database\Eloquent\Relations\HasOne|null |
||
| 51 | */ |
||
| 52 | 24 | public function Caldav() |
|
| 56 | } |
||
| 57 |