public function update(Request $request, Teacher $teacher) { $teachers = $request->all(); $teacher->save(); return back()->with('message', 'Record Successfully Updated!'); }