Skip to content

Commit 70c8cf8

Browse files
Yahavjafar690
authored andcommitted
getForeignKey => getForeignKeyName (#53)
Fixing for laravel 5.8: #50 #52
1 parent 43c3a3d commit 70c8cf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RelationFinder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected function getRelationshipFromMethodAndModel(ReflectionMethod $method, s
8080

8181
if ($return instanceof BelongsTo) {
8282
$foreignKey = $this->getParentKey($return->getQualifiedOwnerKeyName());
83-
$localKey = $return->getForeignKey();
83+
$localKey = $return->getForeignKeyName();
8484
}
8585

8686
return [
@@ -97,4 +97,4 @@ protected function getRelationshipFromMethodAndModel(ReflectionMethod $method, s
9797
return null;
9898
}
9999

100-
}
100+
}

0 commit comments

Comments
 (0)