xiaogang 4 lat temu
rodzic
commit
47937bc115
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Admin/Actions/Users/UsersInfoForm.php

+ 1 - 1
app/Admin/Actions/Users/UsersInfoForm.php

xqd
@@ -53,7 +53,7 @@ class UsersInfoForm extends Form implements LazyRenderable
         $this->text('drink', '喝酒');
         $this->text('smoke', '抽烟');
         $this->array('photo', function (Form $form) {
-            $form->image('url','图片')->saveFullUrl()->uniqueName()->removable(false);
+            $form->image('url','图片')->saveFullUrl()->uniqueName()->removable(false)->autoUpload();;
             $form->radio('state','阅后即焚')->options([0=>"否",1=>"是"])->default(0);
         })->saveAsJson()->label('相册');
         //$this->file('video', '视频')->saveAsJson();