|string> */ public function rules(): array { return [ 'name' => ['required', 'string', 'max:255'], 'type' => ['required', Rule::enum(RegistryType::class), Rule::notIn([RegistryType::MANAGED->value])], 'url' => ['required', 'string', 'max:255', 'not_regex:#^https?://#i'], 'username' => ['nullable', 'string', 'max:255'], 'password' => ['nullable', 'string', 'max:255'], ]; } }