We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50c3412 commit 1682d80Copy full SHA for 1682d80
app/Casts/FloatConvertCasting.php
@@ -17,7 +17,7 @@ class FloatConvertCasting implements CastsAttributes
17
*/
18
public function get($model, string $key, $value, array $attributes)
19
{
20
- return ns()->math->set( $value )->toFloat();
+ return ns()->math->set( $value ?: 0 )->toFloat();
21
}
22
23
/**
0 commit comments