/** * Turn this item object into a generic array * * @return array */ public function transform(MenuProduct $mp) { $product = $mp->product()->first(); return ['product' => $this->processItem($product, new ProductsTransformer()), 'price' => $mp->getPrice()]; }