belongsToMany(ModelwithPivot::class) ->using(CustomPivot::class) ->as('customAccessor'); } }