mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
osm data
This commit is contained in:
@@ -59,10 +59,12 @@ class PrepareForBtcMapItem extends Component
|
|||||||
|
|
||||||
public function updatedPopulation($value)
|
public function updatedPopulation($value)
|
||||||
{
|
{
|
||||||
$this->meetup->city->population = str($value)
|
$value = str($value)
|
||||||
->replace('.', '')
|
->replace('.', '')
|
||||||
->replace(',', '.')
|
->replace(',', '.')
|
||||||
->toInteger();
|
->toInteger();
|
||||||
|
$this->meetup->city->population = $value;
|
||||||
|
$this->population = $value;
|
||||||
$this->meetup->city->save();
|
$this->meetup->city->save();
|
||||||
$this->notification()
|
$this->notification()
|
||||||
->success('Population updated', 'Success');
|
->success('Population updated', 'Success');
|
||||||
|
|||||||
Reference in New Issue
Block a user