We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dba32af commit 016fa3dCopy full SHA for 016fa3d
src/Fields/Assets.php
@@ -16,6 +16,12 @@ class Assets extends Field
16
{
17
protected string $view = 'assets';
18
19
+ protected function defaultProperty(mixed $default = null): array
20
+ {
21
+ /* We need to initialize the value to an empty array for the upload to work. */
22
+ return [];
23
+ }
24
+
25
protected function multipleProperty(?bool $multiple = null): bool
26
27
return $multiple ?? $this->field->get('max_files') !== 1;
0 commit comments