3.7.0
Added
include_pivot_attributes
config option to optionally add pivot attributes to the relationships data (default to false to match previous functionality). Pivot data will be added aspivot_name_pivot_attribute
(remember if you're usingas
it will use this one: https://laravel.com/docs/10.x/eloquent-relationships#customizing-the-pivot-attribute-name).