Jakub Kratina
Jakub Kratina
I'm having this problem too with the `BelongsToMany` relation. In the `ElasticquentTrait`: ``` public static function loadPivotAttribute(Model $model, Relation $parentRelation = null) { $attributes = $model->getAttributes(); foreach ($attributes as $key...
:-) You just have to load pivot, so instead of: ``` return $this->belongsToMany(Value::class, 'item_property_value'); ``` load with pivot ``` return $this->belongsToMany(Value::class, 'item_property_value') ->withPivot('item_id', 'value_id'); ``` I think this should be...