Apr 30, 2021
0
Level 10
How to show the link of uploaded image or file in Nova?
HI friends,
I need your help again please.
I am using the Image field in Nova to upload an image. I want to also show the url to the uploaded image on the details page for the resources.
Image::make('Listing Image')->disk('public')
->path('listingimages')
->storeAs(function (Request $request) {
return $request->listing_image->getClientOriginalName();
}),
Text::make(__('Name'), 'name')->sortable()->rules('required'),
I want to be able to see the url of the uploaded image and copy it if needed. I know I can just do right click and copy the image address, but is there a way to display the url ??
Thanks a lot,
Please or to participate in this conversation.