Default View on Table Column Using SpatieMediaLibraryImageColumn

Hello again all, I am using SpatieMediaLibraryImageColumn in my table. I can successfully see my uploaded images with a help from documentation https://filamentphp.com/docs/2.x/spatie-laravel-media-library-plugin/table-columns I have a question about how can I show a default view with user's first and last name's first char on table? I know I can give a default url with ->default() but how can I give a default view? Can anyone lead me to any source about it? The table looks like below now, and my resource looks like this.
5 Replies
onursahindur
onursahindurOP2y ago
I want to achive a view like this:
Dan Harrin
Dan Harrin2y ago
that isnt a feature yet you can PR it if you want
onursahindur
onursahindurOP2y ago
Oh okey, I will do it. Then can I ask can I do it via custom view or something else? Is there any options I can load a custom view for an ImageColumn? (or Column)
Dan Harrin
Dan Harrin2y ago
you could do it with an ImageColumn and getStateUsing()
onursahindur
onursahindurOP2y ago
you guys amazing. thx.
Want results from more Discord servers?
Add your server