F
Filament12mo 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
toeknee12mo ago
->nullable() ?
ruff
ruffOP12mo ago
Nullable won't solve the problem, cause i need exactly opposite
toeknee
toeknee12mo 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.

Did you find this page helpful?