1 | <?php |
||
24 | class Caldav extends Model |
||
25 | { |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $primaryKey = 'calendar_id'; |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $touches = ['calendar']; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | protected $fillable = ['url', 'username', 'password', 'calendar_name']; |
||
40 | |||
41 | /** |
||
42 | * The attributes excluded from the model's JSON form. |
||
43 | * |
||
44 | * @var array |
||
45 | */ |
||
46 | protected $hidden = ['password']; |
||
47 | |||
48 | /** |
||
49 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
50 | */ |
||
51 | 12 | public function Calendar() |
|
55 | |||
56 | //TODO remmeber to don't allow to change timelsot for a caldav claendar |
||
57 | |||
58 | /** |
||
59 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
60 | */ |
||
61 | public function Employee() |
||
65 | } |
||
66 |