Skip to content

Commit e0d1b1b

Browse files
authored
Merge pull request #47 from graciano/patch-1
Update entry call to string type on strapi v5
2 parents e04dc51 + 0829099 commit e0d1b1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LaravelStrapi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ public function collectionCount(string $type): int
9999
});
100100
}
101101

102-
public function entry(string $type, int $id, $fullUrls = true, array|string $populate = [], array $queryData = []): array
102+
public function entry(string $type, string $documentId, $fullUrls = true, array|string $populate = [], array $queryData = []): array
103103
{
104-
$endpoint = $this->strapiUrl . '/' . $type . '/' . $id;
104+
$endpoint = $this->strapiUrl . '/' . $type . '/' . $documentId;
105105

106106
if (!empty($populate)) {
107107
$queryData['populate'] = $populate;

0 commit comments

Comments
 (0)