diff --git a/src/HasTemporaryFields.php b/src/HasTemporaryFields.php index 73aa70a..004e5a3 100644 --- a/src/HasTemporaryFields.php +++ b/src/HasTemporaryFields.php @@ -8,6 +8,8 @@ trait HasTemporaryFields { protected static function fillFields(NovaRequest $request, $model, $fields) { - return parent::fillFields($request, $model, $fields->reject(fn ($field) => $field->meta['_temp'] ?? false)); + return parent::fillFields($request, $model, $fields->reject(function ($field) { + return $field->meta['_temp'] ?? false; + })); } -} \ No newline at end of file +}