© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
13 replies
topan

Change State

how to use state correctly? i am a beginner

TextColumn::make('email_verified_at')
->label('Status Email')
->badge()
->color(function (string $state) { 
  return !$state ? "danger" : "success";
})
->sortable()
->formatStateUsing(function (string $state): string {
  return (string)!$state ? "Not Verified" : "Verified";
}),
TextColumn::make('email_verified_at')
->label('Status Email')
->badge()
->color(function (string $state) { 
  return !$state ? "danger" : "success";
})
->sortable()
->formatStateUsing(function (string $state): string {
  return (string)!$state ? "Not Verified" : "Verified";
}),
image.png
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

Triggering state change
FilamentFFilament / ❓┊help
3y ago
SelectAction state change action
FilamentFFilament / ❓┊help
3y ago
Change state before dehydration
FilamentFFilament / ❓┊help
3y ago
Disabling action realtime on state change
FilamentFFilament / ❓┊help
17mo ago