* Fix the user country import #443 * Ignore the old "core" groups because they're unused #443 * Properly sync roles and individual permissions #443
This commit is contained in:
@@ -12,15 +12,13 @@ class Countries
|
||||
/**
|
||||
* Get a select box list of all the countries
|
||||
*
|
||||
* @return static
|
||||
* @return \Illuminate\Support\Collection
|
||||
*/
|
||||
public static function getSelectList()
|
||||
{
|
||||
$countries = collect((new ISO3166())->all())
|
||||
return collect((new ISO3166())->all())
|
||||
->mapWithKeys(static function ($item, $key) {
|
||||
return [strtolower($item['alpha2']) => $item['name']];
|
||||
});
|
||||
|
||||
return $countries;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user