6
0
Fork 0

添加spu媒体添加

release
vine_liutk 2021-11-30 13:26:49 +08:00
parent 78e445e8d0
commit 853ee66d1f
1 changed files with 6 additions and 0 deletions

View File

@ -114,6 +114,12 @@ class ProductSpuController extends AdminController
->saveFullUrl()
->removable(false)
->autoUpload();
$form->file('media')->chunked()
->accept('mp4', 'mp4/*')
->move('prduct-spu-medias/'.Carbon::now()->toDateString())
->saveFullUrl()
->removable(false)
->autoUpload();
$form->multipleSelect('features')->options(ProductFeature::all()->pluck('name', 'id'))->customFormat(function ($v) {
if (! $v) {
return [];