1 | <?php |
||
26 | class Meeting extends Model |
||
27 | { |
||
28 | /** |
||
29 | * The attributes that are mass assignable. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $fillable = ['title', 'description', 'duration']; |
||
34 | |||
35 | /** |
||
36 | * The attributes excluded from the model's JSON form. |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $hidden = ['pivot']; |
||
41 | |||
42 | |||
43 | /** |
||
44 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
45 | */ |
||
46 | 51 | public function group() |
|
50 | |||
51 | /** |
||
52 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
53 | */ |
||
54 | 48 | public function timeslots() |
|
58 | |||
59 | /** |
||
60 | * get employees that partecipate to the meetings. |
||
61 | * for all employees invited use groups with employees |
||
62 | * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany |
||
63 | */ |
||
64 | public function employees() |
||
68 | } |
||
69 |