diff --git a/src/ReturnsChildModels.php b/src/ReturnsChildModels.php index 4e3505d..bdc768e 100644 --- a/src/ReturnsChildModels.php +++ b/src/ReturnsChildModels.php @@ -53,7 +53,7 @@ public function belongsTo($related, $foreignKey = null, $ownerKey = null, $relat public function hasMany($related, $foreignKey = null, $localKey = null) { - return parent::hasMany($related, $foreignKey = null, $localKey = null); + return parent::hasMany($related, $foreignKey, $localKey); } public function belongsToMany($related, $table = null, $foreignPivotKey = null, $relatedPivotKey = null, $parentKey = null, $relatedKey = null, $relation = null)