diff --git a/src/Http/Controllers/SettingsController.php b/src/Http/Controllers/SettingsController.php index 65ebd93..765bec0 100644 --- a/src/Http/Controllers/SettingsController.php +++ b/src/Http/Controllers/SettingsController.php @@ -89,7 +89,7 @@ public function save(NovaRequest $request) $tempResource = new \Laravel\Nova\Support\Fluent; $field->fill($request, $tempResource); - if (!isset($tempResource->{$field->attribute})) return; + if (!array_key_exists($field->attribute, $tempResource->getAttributes())) return; if (isset($existingRow)) { $existingRow->value = $tempResource->{$field->attribute};