Bumpyy
Bumpyy
FFilament
Created by Bumpyy on 10/3/2023 in #❓┊help
Default value for Settings page form
in the end i'm using array_map in mutateFormDataBeforeSave protected function mutateFormDataBeforeSave(array $data): array { //? Loop through data and check if there's null value then replace it with empty string. $data = array_map(function ($value) { return $value === null ? "" : $value; }, $data); return $data; }
6 replies
FFilament
Created by Bumpyy on 10/3/2023 in #❓┊help
Default value for Settings page form
According to the documentation "The field value can be empty. This rule is applied by default if the required rule is not present" so i guess that's not it.
6 replies