添加spu媒体添加
parent
78e445e8d0
commit
853ee66d1f
|
|
@ -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 [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue