show image in table #1585
Unanswered
hasanmonfared
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi, you can handle the cell content yourself, for example: TD::make('image')
->render(function (Repository $repository) {
return "<img src='https://...";
}); Also, you can use Blade templates: TD::make('image')
->render(function (Repository $repository) {
return view('your.template');
}); You can also use Blade components: TD::make('image')->component(YourBladeComponent::class, 'nameOfVariable'); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi, I stored a photo with Storage class in folder and save url in the database and I am reading it in database and showing the link on the table, but I want to show it in the img tag.
I looked in the documents but I did not find anything. Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions