public function update(Student $student, StudentUpdateRequest $request)
 {
     $student->fill($request->except('password'));
     $original_password = $student->password;
     if ($request->has('password')) {
         $student->password = bcrypt($request->input('password'));
     }
     if ($student->save()) {
         if ($request->has('password')) {
             event(new StudentPasswordChanged($student, request('password')));
         }
         $message = trans('students::students.update_success', ['name' => $student->name]);
         return redirect()->route('students.students.index')->with('success', $message);
     } else {
         return redirect()->back()->with('error', $message);
     }
 }