F
Filament5mo ago
ruff

Empty string to null disable

Is there any way to get rid of empty string to null conversion? Removed ConvertEmtyStringToNull middleware with no effect
3 Replies
toeknee
toeknee5mo ago
->nullable() ?
ruff
ruff5mo ago
Nullable won't solve the problem, cause i need exactly opposite
toeknee
toeknee5mo ago
By using nullable it supports nulls, which means nulls are not removed. You can cast the value in the model to a string always.