public function editDoctorSchedule(Request $request) { $input = $request->all(); $doctorId = Auth::user()->userId; schedule::updateSchedule($input['hiddenDate'], 'morning', $input['hiddenMr'], $doctorId); schedule::updateSchedule($input['hiddenDate'], 'afternoon', $input['hiddenAf'], $doctorId); return redirect('/doctorScheduleByDoctor'); }