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 0674ad6 commit 874a7d3Copy full SHA for 874a7d3
src/Relations/MorphToMany.php
@@ -32,7 +32,7 @@ class MorphToMany extends EloquentMorphToMany
32
*/
33
public function getHasCompareKey()
34
{
35
- return $this->getForeignKey();
+ return $this->foreignPivotKey;
36
}
37
38
/** @inheritdoc */
@@ -369,16 +369,6 @@ public function newRelatedQuery()
369
return $this->related->newQuery();
370
371
372
- /**
373
- * Get the fully qualified foreign key for the relation.
374
- *
375
- * @return string
376
- */
377
- public function getForeignKey()
378
- {
379
- return $this->foreignPivotKey;
380
- }
381
-
382
383
public function getQualifiedRelatedPivotKeyName()
384
0 commit comments