trans($response)]; } /** * Get the response for a failed password reset. * * @param \Illuminate\Http\Request $request * @param string $response * @return \Illuminate\Http\RedirectResponse * * @codeCoverageIgnore Can't find how to test this :/ */ protected function sendResetFailedResponse(Request $request, $response) { return response()->json(['resetFailed' => trans($response)], 400); } }