getOtherKey was moved onto the Pivot Object in Laravel 5.4; by fetching the first Result we can directly access it. (in the position class there should always be a ->first() element)
Coverage remained the same at 61.054% when pulling 8726816a8335c5992c38e6a6f58d2542d48e71ff on aulrich:laravel-5.4-relation-position-fix into 0c3ee07ce4666fb8e7db5edfed532fd63e2a55c5 on BKWLD:master.
issue #73
getOtherKey was moved onto the Pivot Object in Laravel 5.4; by fetching the first Result we can directly access it. (in the position class there should always be a ->first() element)