|string> */ public function rules(): array { return [ 'name' => ['required', 'string', 'max:255'], 'type' => ['required', Rule::enum(RegistryType::class)], 'url' => ['required', 'string', 'max:255'], 'username' => ['nullable', 'string', 'max:255'], 'password' => ['nullable', 'string', 'max:255'], ]; } }