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 a20f4d1 commit 6c1d6d6Copy full SHA for 6c1d6d6
src/Http/Requests/Concerns/InteractWithRepositories.php
@@ -90,7 +90,8 @@ public function viaQuery(): Relation
90
91
public function modelQuery(?string $repositoryId = null, ?string $uriKey = null): Builder|Relation
92
{
93
- return $this->newQuery($uriKey)->whereKey(
+ return $this->newQuery($uriKey)->where(
94
+ $this->model()->getRouteKeyName(),
95
$repositoryId ?? $this->route('repositoryId')
96
);
97
}
0 commit comments