ask('What is the email?'); $user = User::where('email', $email)->first(); if (!$user) { $this->error(sprintf('User %s could not be found', $email)); return -1; } $user->password = $this->secret('What is the password?'); $user->saveOrFail(); $this->info('User updated.'); return 0; } }