'required|min:3'], ); $email = text( label: 'What is the new user\'s email?', validate: ['email' => 'required|email|unique:users,email'], ); $password = password( label: 'Desired password: ', validate: ['password' => 'required|min:8'], ); $password_confirmation = password( label: 'Confirm password: ', validate: ['password_confirmation' => 'required'], ); $newUser = $creator->create([ 'name' => $name, 'email' => $email, 'password' => $password, 'password_confirmation' => $password_confirmation, ]); $this->info('User created successfully.'); } }