middleware('guest')->except('logout'); } /** * Get the login username to be used by the controller. * * @return string */ public function username() { return 'username'; } /** * Validate the user login request. * * @param Request $request * @return void * */ protected function validateLogin(Request $request) { $request->validate([ $this->username() => ['required', 'string'], 'password' => ['required', 'string'], 'g-recaptcha-response' => ['required', app('cutlet-recaptcha')] ]); } }