LukePOLO\LaraCart\CartItem::getModel PHP Method

getModel() public method

Returns a Model.
public getModel ( )
    public function getModel()
    {
        $itemModel = (new $this->itemModel())->with($this->itemModelRelations)->find($this->id);
        if (empty($itemModel)) {
            throw new ModelNotFound('Could not find the item model for ' . $this->id);
        }
        return $itemModel;
    }