Skip to content

Commit 1b265df

Browse files
committed
Merge branch 'feature/laravel-12' of https://github.com/Lomkit/laravel-rest-api into feature/laravel-12
2 parents e434a86 + e665795 commit 1b265df

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Actions/DispatchAction.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ function ($chunk, $page) use ($limit, $chunkCount) {
145145
if (!is_null($limit) && $page * $chunkCount >= $limit) {
146146
$collection = $collection->take($limit - ($page - 1) * $chunkCount);
147147
$this->forModels($collection);
148+
148149
return false;
149150
}
150151

tests/Support/Rest/Resources/ModelResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function limits(RestRequest $request): array
115115
10,
116116
25,
117117
50,
118-
150
118+
150,
119119
];
120120
}
121121

0 commit comments

Comments
 (0)