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 67601d9 commit 36c26b2Copy full SHA for 36c26b2
src/Repositories/Repository.php
@@ -670,7 +670,7 @@ protected function getType(RestifyRequest $request): ?string
670
671
protected function getShowId(RestifyRequest $request): ?string
672
{
673
- return $this->resource->getKey();
+ return collect($this->resource->getHidden())->contains($this->resource->getKeyName()) ? null : $this->resource->getKey();
674
}
675
676
public function jsonSerialize()
0 commit comments