TextEntry when value is null
Why doesn't this work when the value of strap is null?
TextEntry::make('strap')
->columnSpanFull()
->getStateUsing(function (Product $record) {
ray($record);
return $record->strap === 1 ? 'Ja' : 'Nee';
})getStateUsing() is correct here, because null wouldn't be passed to formatStateUsinggetStateUsing()formatStateUsing