TextColumn formatState if state if empty
how can i set default value if valid_from is empty?
I would like to set the value to "not set"?
10 Replies
What is "not set" in this context?
NULL
in the database?yes
we convert old laravel project to use filaments.. and old database is lot off rows where valid_from is null, we need inform users somehow about this..
Something like this?
->default('not set')
?Not sure if
default()
applies in the context of a List but something to trySolution
So in this case, it's a choice between default() and placeholder(). Personally I would go for placeholder().
Ooo i didn't know about placeholder, time to refactor my code
Same, this is pretty cool! Thanks @Hugh Messenger
Thx all