Skip to content

Commit

Permalink
Added current attribute value for internal use by the field.
Browse files Browse the repository at this point in the history
  • Loading branch information
joserick authored and ferdiunal committed Sep 19, 2024
1 parent 32d0842 commit 0059068
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Controllers/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ function ($field) use (&$request, &$rules, $settingsClass) {
return;
}

$tempResource = new \Laravel\Nova\Support\Fluent;
$tempResource = new \Laravel\Nova\Support\Fluent([
$field->attribute => $settingsClass->{$field->attribute},
]);
$field->fill($request, $tempResource);

$settingsClass->{$field->attribute} = $tempResource->{$field->attribute};
Expand Down

0 comments on commit 0059068

Please sign in to comment.