Skip to content

Commit ffd719e

Browse files
committed
Merge branch 'morph-pivot-type-attribute' into 8.x
2 parents 18b1b89 + 7e08215 commit ffd719e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Illuminate/Database/Eloquent/Relations/MorphPivot.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ public function delete()
7474
});
7575
}
7676

77+
/**
78+
* Get the morph type for the pivot.
79+
*
80+
* @return string
81+
*/
82+
public function getMorphType()
83+
{
84+
return $this->morphType;
85+
}
86+
7787
/**
7888
* Set the morph type for the pivot.
7989
*

0 commit comments

Comments
 (0)