diff --git a/src/Html/Editor/Fields/Select2.php b/src/Html/Editor/Fields/Select2.php index 406858d..e16f045 100644 --- a/src/Html/Editor/Fields/Select2.php +++ b/src/Html/Editor/Fields/Select2.php @@ -38,6 +38,11 @@ public function optsPlaceholder(string $text = '', string $id = ''): static ]); } + public function multiple(bool $value = true): static + { + return $this->opts(['multiple' => $value]); + } + /** * Set select2 ajax option. *