© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Thijmen

Table Widget hidden() not working

I have a Table Widget on a view page.
On a TextColumn i have the following code:
->icon(fn ($record) => json_decode($record->details)->ConsumerDetails->DeliveryMethod === 'AFH' ? 'heroicon-s-building-storefront' : 'heroicon-s-truck')
->icon(fn ($record) => json_decode($record->details)->ConsumerDetails->DeliveryMethod === 'AFH' ? 'heroicon-s-building-storefront' : 'heroicon-s-truck')

->hidden(fn ($record) => json_decode($record->details)->ConsumerDetails->DeliveryMethod === 'AFH')
->hidden(fn ($record) => json_decode($record->details)->ConsumerDetails->DeliveryMethod === 'AFH')


For some reason the
->icon()
->icon()
is working fine and for
->hidden()
->hidden()
i get the error:
Attempt to read property "details" on null
Attempt to read property "details" on null
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

page filters not working on table widget
FilamentFFilament / ❓┊help
8mo ago
Table Widget - extremePaginationLinks and queryStringIdentifier not working
FilamentFFilament / ❓┊help
2y ago
Export on widget table with filtering not working
FilamentFFilament / ❓┊help
2y ago
BUG: Bulk action in table widget not working
FilamentFFilament / ❓┊help
3y ago