I don't believe mySQL is even capable of saving a decimal value with a comma. Are you sure this is how it's saved, or is this just how it looks after you retrieve it from the database?
On a side note, it is possible to format the number in php to look the way you want using the number_format function
I suspect that this might have something to do with localization. There are a number of countries such as France, Poland and Denmark that use "," as a decimal separator.
Where are you seeing this comma? Is it direct in the database when using the mysql binary or in your pulled in to your laravel app (Or is are you looking at it with a different tool like phpmyadmin or mysql workbench)? As far as I am aware @jakeryansmith is correct about mysql using a comma as a decimal separator, it's not localized like that.
@jakeryansmith iam pretty sure it saves with the comma, iam using heidisql to view the database data, and it shows with the commas.
I already tryed that number_format function at the insert statement, still same result.
@oeb i am seing in the raw database, using heidisql windows application. Value always get saved with comma and not dot.
Its HeidiSQL option: 'Alternating row background: Local number format'. Seems a localization auto formatting of HeidiSQL. Disabled, and i got the right values. Thank you.
@Komayo, heidisql does preform number localization. From what I can gather, you should be able to change this by going
Tools-> Preferences-> Text formatting-> Local number format.
This only affects how the information is DISPLAYED within heidisql, the mysql server it self is storing the number correctly, and your app should display it correctly as well (Unless you are localizing that too).