Skip to content

Commit

Permalink
Temporarily fix issues with artisan model:show
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Nov 8, 2023
1 parent 0eb283b commit da1aa06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HasJsonRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public function hasManyThroughJson(
if ($firstKey instanceof JsonKey) {
$relationships[] = $this->hasManyJson($through, $firstKey, $localKey);

$relationships[] = $through->hasMany($related, $secondKey, $secondLocalKey);
$relationships[] = $through->hasMany ($related, $secondKey, $secondLocalKey);
} else {
if (!method_exists($through, 'belongsToJson')) {
//@codeCoverageIgnoreStart
Expand All @@ -334,7 +334,7 @@ public function hasManyThroughJson(
// @codeCoverageIgnoreEnd
}

$relationships[] = $this->hasMany($through, $firstKey, $localKey);
$relationships[] = $this->hasMany ($through, $firstKey, $localKey);

$relationships[] = $through->belongsToJson($related, $secondLocalKey, $secondKey);
}
Expand Down

0 comments on commit da1aa06

Please sign in to comment.