fix name of country
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 10s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 10s
This commit is contained in:
@@ -39,6 +39,15 @@ class CountryCode extends Model
|
||||
$codes = $this->select('country_name', 'country_code')->get();
|
||||
return $codes->mapWithKeys(function ($item) {
|
||||
return [$item['country_name'] => $item['country_code']];
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
protected function code_countryHash()
|
||||
{
|
||||
$codes = $this->select('country_name', 'country_code')->get();
|
||||
return $codes->mapWithKeys(function ($item) {
|
||||
return [$item['country_code'] => $item['country_name']];
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user