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 293bff7 commit f68602bCopy full SHA for f68602b
src/Concerns/Resources/InteractsWithSchemas.php
@@ -29,6 +29,13 @@ public function getResourceRequiredFormFields(): array
29
->all();
30
}
31
32
+ public function getResourceMaxLengthFormFields(): array
33
+ {
34
+ return collect($this->getResourceFormFields())
35
+ ->filter(fn (Field $field): bool => method_exists($field, 'getMaxLength') && $field->getMaxLength() !== null)
36
+ ->all();
37
+ }
38
+
39
public function getResourceFormFieldKeys(): array
40
{
41
return collect($this->getResourceFormFields())
0 commit comments