|
@@ -127,6 +127,7 @@ class DistAdminDistributorController extends AdminController
|
|
|
$form->text('country_lang')->width(9,3)->required()->help('Please enter the language code, such as en ru es');
|
|
|
$form->text('address')->width(9,3);
|
|
|
$form->switch('enabled')->width(9,3)->default(1);
|
|
|
+ $form->hidden('country_alpha_2');
|
|
|
//保存前回调
|
|
|
$form->saving(function (Form $form) {
|
|
|
$form->country_alpha_2 = BaseIso3166::getAlpha2($form->country);
|