© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
19 replies
hello_world

I can't formatState of TextColumn having value null

TextColumn::make('last_contacted')->date('M d')->label('Last Attempt')->sortable()->formatStateUsing(function($state){
                    if($state != null){
                        info($state);
                    }
                    else{
                        info('hello');
                    }
                }),
TextColumn::make('last_contacted')->date('M d')->label('Last Attempt')->sortable()->formatStateUsing(function($state){
                    if($state != null){
                        info($state);
                    }
                    else{
                        info('hello');
                    }
                }),
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

TextColumn formatState if state if empty
FilamentFFilament / ❓┊help
3y ago
Custom value of textcolumn description
FilamentFFilament / ❓┊help
3y ago
TextColumn with subquery value
FilamentFFilament / ❓┊help
3y ago
Value of field ins null
FilamentFFilament / ❓┊help
2y ago