convert , to .

This commit is contained in:
HolgerHatGarKeineNode
2023-02-21 20:45:59 +01:00
parent 83e31dbc4c
commit 2a0c39ff17

View File

@@ -29,14 +29,28 @@ class CityForm extends Component
public function mount()
{
if (! $this->city) {
if (!$this->city) {
$this->city = new City();
}
if (! $this->fromUrl) {
if (!$this->fromUrl) {
$this->fromUrl = url()->previous();
}
}
public function updatedCityLongitude($value)
{
$this->city->longitude = str($value)
->replace(',', '.')
->toFloat();
}
public function updatedCityLatitude($value)
{
$this->city->latitude = str($value)
->replace(',', '.')
->toFloat();
}
public function save()
{
$this->validate();