소스 검색

国家语言

moshaorui 4 달 전
부모
커밋
bd1d50be34
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/Admin/Controllers/DistAdminDistributorController.php

+ 1 - 0
app/Admin/Controllers/DistAdminDistributorController.php

@@ -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);