mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 06:46:08 -06:00
foreach change to pluck
This commit is contained in:
parent
3220976fd2
commit
96561ecb31
@ -82,10 +82,8 @@ return [
|
|||||||
return [config('visiosoft.theme.base::countries.default')];
|
return [config('visiosoft.theme.base::countries.default')];
|
||||||
},
|
},
|
||||||
'options' => function () {
|
'options' => function () {
|
||||||
$array = CountryModel::query()->get();
|
$array = CountryModel::query()->get()->pluck('name', 'abv')->toArray();
|
||||||
$cur = array();
|
return $array;
|
||||||
$cur[] = $array->pluck('name', 'abv');
|
|
||||||
return $cur;
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user