save images

This commit is contained in:
Petri Asikainen 2021-06-28 07:58:08 +03:00
parent 0e2efb6573
commit 695bf1e15f

View file

@ -95,7 +95,8 @@ class AccessoriesController extends Controller
$this->authorize('create', Accessory::class);
$accessory = new Accessory;
$accessory->fill($request->all());
$accessory = $request->handleImages($accessory);
if ($accessory->save()) {
return response()->json(Helper::formatStandardApiResponse('success', $accessory, trans('admin/accessories/message.create.success')));
}