Exemplo n.º 1
0
 public function update(UpdateCenterRequest $request, $center_id)
 {
     $center = ExamCenter::findOrFail($center_id);
     $center->fill($request->only('name', 'students_limit', 'lang', 'lat'))->save();
     $message = trans('exams::centers.update_success');
     if ($request->input('submit') == 'save') {
         return redirect()->route('exams.centers.edit', $center->id)->with('success', $message);
     }
     return redirect()->route('exams.centers.index')->with('success', $message);
 }