$image = ImageDNK::save($request, 'image');
$tab_bg = ImageDNK::save($request, 'tab_bg');
$is_reccomended = $request->has('is_reccomended') ? true : false;
$validated['image'] = $image;
$validated['tab_bg'] = $tab_bg;
$validated['is_reccomended'] = $is_reccomended;
if($hasCategory){
$objCatsRels = new CategoriesRelationship();
$objCatsRels = $objCatsRels->create([
'object_id' => $id,
'category_id' => $request->input('product_category'),
]);
}