where('item_id', $data['item_id']) // ->where('document_number', $data['document_number']) // ->where('invoice_number', $data['invoice_number']) // ->where('supplier_number', $data['supplier_number']) // ->exists(); // if ($exists) { // Notification::make() // ->title('Duplicate Record') // ->body('This combination already exists in Master.') // ->danger() // ->send(); // throw ValidationException::withMessages([ // 'item_id' => 'This combination already exists in Master.', // ]); // } // return $data; // } }