Package Version
v1.0.7
Laravel Version
v10.48.25
PHP Version
8.2.26
Problem description
When updating a value through the form, the plugin displays it as a date. However, in my model, the field is configured as a float, and in the database, it is set as decimal(15,2). While Spatie correctly stores the values, the plugin retrieves and displays them as a date instead of a float.
Let me know if additional details are needed to help resolve this issue. Thank you!
Expected behavior
The field should be displayed as a float or decimal value in the same format as it is stored in the database (decimal(15,2)), consistent with the configuration in the model (float). There should be no conversion or misinterpretation of the value as a date.
Steps to reproduce
- Configure a field in the model as float.
- Set the corresponding database column as decimal(15,2).
- Update the value of the field through the form.
- Observe how the field is displayed in the plugin; it appears as a date instead of a float/decimal.
Reproduction repository (issue will be closed if this is not valid)
none
Relevant log output
No response
Package Version
v1.0.7
Laravel Version
v10.48.25
PHP Version
8.2.26
Problem description
When updating a value through the form, the plugin displays it as a date. However, in my model, the field is configured as a float, and in the database, it is set as decimal(15,2). While Spatie correctly stores the values, the plugin retrieves and displays them as a date instead of a float.
Let me know if additional details are needed to help resolve this issue. Thank you!
Expected behavior
The field should be displayed as a float or decimal value in the same format as it is stored in the database (decimal(15,2)), consistent with the configuration in the model (float). There should be no conversion or misinterpretation of the value as a date.
Steps to reproduce
Reproduction repository (issue will be closed if this is not valid)
none
Relevant log output
No response