I have set up a form with image upload. By default laravel nova is showing a delete button and choose image button.
According to my requirement, my client wants to keep the image as non-editable (hide delete and choose button) in the laravel nova form.
How can I do this? Any ideas?
There is no option to hide "Choose File" button, only possible to hide delete button in some cases.
But for your case you can just hide whole field from edit form.
File::make('File')->hideWhenUpdating();
The delete
operation can be disabled from the field
with following code:
File::make('File')->deletable(false);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With