@@ -255,7 +255,7 @@ |
||
255 | 255 | $relations = ['hasManyThrough', 'belongsToMany', 'hasMany', 'morphMany', 'morphToMany']; |
256 | 256 | if (in_array($relation, $relations)) { |
257 | 257 | //Collection or array of models (because Collection is Arrayable) |
258 | - $relationships["HasMany"][$method] = $relatedModel; |
|
258 | + $relationships["HasMany"][$method] = $relatedModel; |
|
259 | 259 | } elseif ($relation === "morphTo") { |
260 | 260 | // Model isn't specified because relation is polymorphic |
261 | 261 | $relationships["UnknownPolyMorphSide"][$method] = |