public function imported() { return view('importer.products.success', ['data' => ImportedProduct::all()]); }
private function getWooProductId($id) { $customer = ImportedProduct::where('os_id', '=', $id)->get()->first(); if (isset($customer['wc_id'])) { return $customer['wc_id']; } throw new Exception("the product has not been imported yet."); }