code: public function wang(Request $request)
      {
          // 文件
          $upload_file = isset($_FILES['upload_file']) ? $_FILES['upload_file'] : null;
          if (empty($upload_file)) {
              return 'error|上传文件不存在';
          }
          
          // 额外配置
          $upload_option = [
              'width' => 1920,
              'height' => 1080
          ];
          
          // 上传文件
          $upload_driver = FileLogic::instance()->getUploadDriver();
          $res = $upload_driver->upload($upload_file, '', $upload_option);
          if ($res['code'] == 1) {
              return $res['data']['url'];
          } else {
              return 'error|' . $res['msg'];
          }
      }
docs: wangEditor
  
  @param Request $request
  @return string