Closed singhhp1069 closed 3 years ago
Hi,
I am using the CRUD package but how to render image here:
Sight::make('image'); (this is just a text)
I tried:
Sight::make('image')->render(function (){ return Picture::make('image'); }),
but it returned an error and also I didn't found any solution in the documentation, can you help here?
got the solution:
Sight::make('image')->render(function (Category $category) { return '<img src="'.$category->icon.'"'; }),
Hi,
I am using the CRUD package but how to render image here:
Sight::make('image'); (this is just a text)
I tried:
Sight::make('image')->render(function (){ return Picture::make('image'); }),
but it returned an error and also I didn't found any solution in the documentation, can you help here?