79170936

Date: 2024-11-08 17:01:51
Score: 1
Natty:
Report link
$specificationIds = array_filter(array_column($request->specification, 'id'), function($value) {return !empty($value);});

$specification = ProductSpecification::whereIn('id', $specificationIds)->get();
if(count($specification) > 0){
$specification->delete();
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mahesh Kumar Saini