where('email', strtolower((string) $this->argument('email')))->first(); if ($user === null) { $this->error('There is no account with that email address.'); return self::FAILURE; } $authenticator->reset($user); $authenticator->log('two_factor.reset', 'The second step was reset from the command line', null, $user); $this->info('The second step of '.$user->email.' is off. It sets it up again at the next login.'); return self::SUCCESS; } }