Open qahtansaid opened 1 year ago
name function only renaming first file, not others
if ($form->isEditing()) { $form->multipleImage('images', 'Foto')->options(['uploadParamNames' => ['fileName' => 'aw']]) ->removable()->pathColumn('event_image')->disk('private')->move('foto') ->name(function ($file) use ($form) { return $form->model()->eventcode . '' . $file->getClientOriginalName(); }) ->options(['maxFileCount' => 50, 'validateInitialCount' => true])->help('Max file size: 20MB, lebih dari itu silahkan upload bergantian.'); }
Description:
name function only renaming first file, not others
Steps To Reproduce:
if ($form->isEditing()) { $form->multipleImage('images', 'Foto')->options(['uploadParamNames' => ['fileName' => 'aw']]) ->removable()->pathColumn('event_image')->disk('private')->move('foto') ->name(function ($file) use ($form) { return $form->model()->eventcode . '' . $file->getClientOriginalName(); }) ->options(['maxFileCount' => 50, 'validateInitialCount' => true])->help('Max file size: 20MB, lebih dari itu silahkan upload bergantian.'); }