I am new to Laravel Nova Framework. I have stored image using image upload field. I am using concept of blob to same image.
Application Model (Name, Description, Image) -> ApplicationAttachment -> Blob
How to show the image in resource page?
I am trying to use following code.
Avatar::make('Photo')->thumbnail(function () {
return "image_url";
})->onlyOnDetail(),
Here, inside thumbnail, I want to replace static url with my dynamic. For that, I want to get current model inside thumbnail function. But it shows me undefined.
I tried to get like $model.
- Laravel version 6
- Nova version 2