Resource is not binded when updating dependent fields #4842
-
Description:When updating an existing resource, Laravel doesn't bind the resource when applying dependent fields. To be more specific, when the It seems that Right now it looks like this: public function sync(ResourceUpdateOrUpdateAttachedRequest $request)
{
UpdateViewResource::make()->newResourceWith($request);
return response()->json(
$request->newResource()
->updateFields($request)But I think it should be this instead: public function sync(ResourceUpdateOrUpdateAttachedRequest $request)
{
$resource = UpdateViewResource::make()->newResourceWith($request);
return response()->json(
$resource
->updateFields($request)Detailed steps to reproduce the issue on a fresh Nova installation:
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
|
This is the current expected behaviour, as loading the resources on each sync could be a performance bottleneck for the app. Marking this as a feature request for now. |
Beta Was this translation helpful? Give feedback.
-
|
Implemented in 4.16 |
Beta Was this translation helpful? Give feedback.

Implemented in 4.16