【问题标题】:Using Laravel Backpack upload a file (type => upload) is not visible in editing使用 Laravel Backpack 上传文件(类型 => 上传)在编辑中不可见
【发布时间】:2020-03-09 05:39:28
【问题描述】:

我使用 laravel 背包 type => 'upload' 视图上传文件。它上传成功。但在编辑中,它是不可见的输入。如果有人知道可以帮助我,那有什么问题。

我的控制器

$this->crud->addField([
            'label' => "Document",
            'name' => "document",
            'type' => 'upload',
            'upload' => true,
            'crop' => false,
            'disk' => 'vault',
        ]);

下面我附上编辑输入视图。它没有显示已经上传的文件名。

【问题讨论】:

    标签: laravel laravel-backpack


    【解决方案1】:

    试试这个

    试试这个 使用], 'both');

    $this->crud->addField(
                [
                 'label' => "Document",
                 'name' => "document",
                 'type' => 'upload',
                 'upload' => true,
                 'crop' => false,
                 'disk' => 'vault',
                ], 'both');
    

    【讨论】:

      猜你喜欢
      • 2020-11-09
      • 2018-05-02
      • 2022-11-24
      • 1970-01-01
      • 2019-05-03
      • 1970-01-01
      • 2012-04-15
      • 2017-03-28
      • 2018-07-19
      相关资源
      最近更新 更多