$this->id, 'name_ru' => $this->getAttributeTranslated('name', 'ru'), 'name_en' => $this->getAttributeTranslated('name', 'en'), 'category_id' => $this->categories()->first()->id, 'productForEditing' => $this->id, 'quantity' => $this->quantity, 'price' => $this->price, 'place' => $this->place, 'description_tm' => $this->getAttributeTranslated('description', 'tm'), 'description_ru' => $this->getAttributeTranslated('description', 'ru'), ]; } }