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

nzmattman's avatar

Display field value on update with Laravel Nova

Hi there.

I have a bunch of fields that I want to be displayed on the update for a resource but I don't want them to be editable.

Ideally I would like the fields to display as they do in the details view, and only have a few select fields be able to be editable.

I know I can use ->readonly(), but I prefer not to show a field at all, just the value.

Is this possible?

0 likes
4 replies
nzmattman's avatar

yeah pretty much that is what i want to do, I was hoping it could be done out of the box

so instead of doing something like Text::make('First Name', 'first_name')->readonly() we could do something like Text::make('First Name', 'first_name')->displayOnUpdate()

tesren's avatar

You could hide your field on the update page so it's not modified like this: Text::make('First Name', 'first_name')->hideWhenUpdating()

and then add this to your Nova resource so the user can see the first_name as a title instead of the ID public static $title = 'first_name';

Hope this helps

P.S. You can't simply add a span tag because that would mean you have to modify the Nova Vue.js files which its not possible currently.

nzmattman's avatar

thanks @tesren, that won't quite work as we have about 25 fields. I am just running with ->readonly for now, but seems a bit odd that we can't just have a static field when editing like we can when viewing

Please or to participate in this conversation.