在创建和编辑表单:
$form->image('background', __('背景图'))->move('bargain_activity/'.date('Y-m-d') )
->name(function ($file) {
return date('YmdHi').mt_rand(1000,9999).'.'.$file->guessExtension();
})->value('http://testoutdhgc.oss-cn-hangzhou.aliyuncs.com/admin/uploads/bargain_activity/share_image/base/5f2a6815dfc83.png');
创建的时候,默认是显示出来的,提交的时候不写进入数据库。。
编辑的时候,默认是不显示value的值的,数据库的该字段是空值
希望:本来设置这个value的值就是在没有值的情况下,显示出来,或者是在提交创建数据的时候写入数据库字段里面