back()->with([ 'success' => __('You have been successfully logged out.') ]); } /** * @return RedirectResponse */ public function failed(): RedirectResponse { return redirect()->back()->with([ 'error' => __('Due to a technical problem, you could not be logged out.') ]); } }