php - Laravel Nova 4.0 the old value does not remain on update action
one text
When I want to update, an item does not remain old selected option (value). What can I do to keep option on current value ? This is field() lines:
public function fields(NovaRequest $request)
{
return [
ID::make('id')->sortable(),
Text::make('Title'),
Select::make('Type')->options(FormElementType::cases())->default('field')->resolveUsing(function () {
return $this->type ?? 'map';
}),
];
}
Source