Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

rob_web_dev's avatar

Laravel Nova: Edit Fields Not working; not updating, and sending empty array to backend

I am using Laravel version 9.41 and Nova 4. I can delete records, however it appears that on the frontend/javascript side of things my form fields are not having their contents captured and sent back to the server. My action_events table shows [ ] empty arrays as what is being sent.

I have spent a good four or five hours googling and checking that my Resources, field names etc. are all spelled correctly. I also see no error messages. Each time I get the green success message "This has been updated!" or whatever.

ge "This has been updated!" or whatever.

use Illuminate\Http\Request; use Laravel\Nova\Fields\ID; use Laravel\Nova\Fields\Text; use Laravel\Nova\Http\Requests\NovaRequest;

class Post extends Resource { /** * The model the resource corresponds to. * * @var class-string<\App\Models\Post> */ public static $model = \App\Models\Post::class;

/**
 * The single value that should be used to represent the resource when being displayed.
 *
 * @var string
 */
public static $title = 'id';

/**
 * The columns that should be searched.
 *
 * @var array
 */
public static $search = [
    'id',
    'text'
];

/**
 * Get the fields displayed by the resource.
 *
 * @param  \Laravel\Nova\Http\Requests\NovaRequest  $request
 * @return array
 */
public function fields(NovaRequest $request)
{
    return [
        ID::make('id', 'id')->sortable(),
        Text::make('text', 'text')->sortable()
    ];
}
0 likes
2 replies
rob_web_dev's avatar

Here is a stackoverflow.com 50+ Bounty I placed on this question, I think there might be a bug in the javascript that picks up the fields and send them back to the server, I can not yet post links here on Laracasts... please search for this on stack overflow: "laravel-nova-edit-fields-not-working-not-updating-and-sending-empty-array-to"

rob_web_dev's avatar

FYI my action_events table shows empty arrays for both the "original" and "changes" fields.

Please or to participate in this conversation.