We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a05e34 commit abeaa5cCopy full SHA for abeaa5c
src/Database/Traits/SortableRelation.php
@@ -62,7 +62,7 @@ public function initializeSortableRelation()
62
*/
63
protected function defineSortableRelations()
64
{
65
- $interactsWithPivot = ['belongsToMany'];
+ $interactsWithPivot = ['belongsToMany', 'morphToMany'];
66
$sortableRelations = [];
67
68
foreach ($interactsWithPivot as $type) {
0 commit comments