FilamentF
Filament3y ago
Sven

Default Key-Value when creating a new record

While we can set a default value for a normal input field, I can't seem to find the option to do the same for a key-value field.

Is it possible to set a default array value on page load?
Solution
this should be
->default([
    'sizes' => 'S, M, L, XL, XXL'
])
Was this page helpful?