mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-27 16:14:39 -06:00
sign up country selection settings added
This commit is contained in:
parent
8ff6179572
commit
779c4e5bd2
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
use Visiosoft\LocationModule\Country\CountryRepository;
|
use \Visiosoft\LocationModule\Country\CountryModel;
|
||||||
return [
|
return [
|
||||||
'navigation_title' => [
|
'navigation_title' => [
|
||||||
'type' => 'anomaly.field_type.boolean',
|
'type' => 'anomaly.field_type.boolean',
|
||||||
@ -82,7 +82,7 @@ return [
|
|||||||
return [config('visiosoft.theme.base::countries.default')];
|
return [config('visiosoft.theme.base::countries.default')];
|
||||||
},
|
},
|
||||||
'options' => function () {
|
'options' => function () {
|
||||||
$array = \Visiosoft\LocationModule\Country\CountryModel::query()->get();
|
$array = CountryModel::query()->get();
|
||||||
$cur = array();
|
$cur = array();
|
||||||
foreach ($array as $key => $value) {
|
foreach ($array as $key => $value) {
|
||||||
$cur[$value['abv']] = $value['name'];
|
$cur[$value['abv']] = $value['name'];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user