sign up country selection settings added

This commit is contained in:
Muammer Top 2020-10-13 17:43:10 +03:00
parent 8ff6179572
commit 779c4e5bd2

View File

@ -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'];