middleware('guest'); } protected function rules() { return [ 'token' => 'required', 'username' => 'required', 'password' => 'required|confirmed|'.Setting::passwordComplexityRulesSaving('update'), ]; } protected function credentials(Request $request) { return $request->only( 'username', 'password', 'password_confirmation', 'token' ); } public function showResetForm(Request $request, $token = null) { return view('auth.passwords.reset')->with( [ 'token' => $token, 'username' => $request->input('username') ] ); } protected function sendResetFailedResponse(Request $request, $response) { return redirect()->back() ->withInput(['username'=> $request->input('username')]) ->withErrors(['username' => trans($response)]); } }