Пример #1
0
 public function put($userId, $projectId, $meetingId, MeetingRequest $request)
 {
     $input = $request->all();
     if ($meeting = $this->meeting->update($meetingId, $input)) {
         return $meeting;
     }
     return response()->json(['error' => 'There was a problem!', 500]);
 }
Пример #2
0
 /**
  * Update the existing meeting
  *
  * @param Meeting $meeting
  * @param CreateMeeting|MeetingRequest $request
  * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector|void
  */
 public function update(Meeting $meeting, MeetingRequest $request)
 {
     $meeting->update($request->all());
     flash()->success(trans('meetings.updatedFlashMessage'));
     return redirect('/');
 }