Doc says:
By default, only the keys will be present on the pivot object. If your pivot table contains extra attributes, you must specify them when defining the relationship:
return $this->belongsToMany('Role')->withPivot('foo', 'bar');
So you should be able to get what you want by passing column names as params of withPivot method.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community