/** * Update the specified resource in storage. * * @param Request $request * @param int $id * @return Response */ public function update($id, ParticipantRequest $request) { $participant = Participant::findOrFail($id); $participant->update($request->all()); flash('Participant has been updated'); return Redirect::back(); }
public function join_external(Request $request, $token) { $inv = Invitation::where('token', '=', $token)->firstOrFail(); $part = Participant::findOrFail($inv->participant); $room = Room::findOrFail($inv->room); if ($part->moderator) { $pass = $room->mod_pass; } else { $pass = $room->att_pass; } //check if meeting running and create if needed $bbb_id = bbbController::running($room); if (!$bbb_id) { $bbb_id = bbbController::create($room); } //join meeting $bbb = new BigBlueButton($bbb_id); $params = array('meetingId' => $room->bbb_meeting_id, 'username' => $part->mail, 'userId' => '', 'webVoiceConf' => '', 'password' => $pass); try { $result = $bbb->getJoinMeetingURL($params); } catch (Exception $e) { throw new Exception($e->getMessage() . "\n"); } return redirect($result); }