/** * @param $attached * @return array */ protected function findProduct($attached) { //load the product use the core table $products = $this->bareProducts(); $product = (array) $products->where($this->product->getKeyName(), $attached['product_id'])->first(); return $product; }