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:
@@ -25,7 +25,7 @@ class PrepareForBtcMapItem extends Component
|
|||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'population' => 'required|numeric',
|
'population' => 'required',
|
||||||
'population_date' => 'required|string',
|
'population_date' => 'required|string',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -59,7 +59,10 @@ class PrepareForBtcMapItem extends Component
|
|||||||
|
|
||||||
public function updatedPopulation($value)
|
public function updatedPopulation($value)
|
||||||
{
|
{
|
||||||
$this->meetup->city->population = $value;
|
$this->meetup->city->population = str($value)
|
||||||
|
->replace('.', '')
|
||||||
|
->replace(',', '.')
|
||||||
|
->toInteger();
|
||||||
$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