1 | <?php |
||
14 | class MeetingsController extends Controller |
||
15 | { |
||
16 | /** |
||
17 | * ExampleController constructor. |
||
18 | */ |
||
19 | 30 | public function __construct() |
|
25 | |||
26 | /** |
||
27 | * Display a listing of the resource. |
||
28 | * |
||
29 | * @param int $groupId |
||
30 | * @return mixed |
||
31 | */ |
||
32 | 2 | public function index($groupId) |
|
39 | |||
40 | /** |
||
41 | * Display the specified resource. |
||
42 | * |
||
43 | * @param int $groupId |
||
44 | * @param int $meetingId |
||
45 | * @return mixed |
||
46 | */ |
||
47 | 6 | public function show($groupId, $meetingId) |
|
55 | |||
56 | /* |
||
57 | * Check if a meeting with this title already exists for this group. |
||
58 | */ |
||
59 | private function checkTitleAlreadyExists($title, $group) |
||
67 | |||
68 | /** |
||
69 | * Store a newly created resource in storage. |
||
70 | * |
||
71 | * @param MeetingRequest $request |
||
72 | * @param int $groupId |
||
73 | * @return static |
||
74 | */ |
||
75 | 10 | public function store(MeetingRequest $request, $groupId) |
|
88 | |||
89 | /** |
||
90 | * Update the specified resource in storage. |
||
91 | * |
||
92 | * @param MeetingRequest $request |
||
93 | * @param int $meetingId |
||
94 | * @param int $groupId |
||
95 | * @return mixed |
||
96 | */ |
||
97 | 8 | public function update(MeetingRequest $request, $groupId, $meetingId) |
|
111 | |||
112 | /** |
||
113 | * Remove the specified resource from storage. |
||
114 | * |
||
115 | * @param int $groupId |
||
116 | * @param int $meetingId |
||
117 | * @return mixed |
||
118 | */ |
||
119 | 8 | public function destroy($groupId, $meetingId) |
|
128 | } |
||
129 |