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 97589a7 commit ad182afCopy full SHA for ad182af
src/Traits/ResponseTrait.php
@@ -33,6 +33,7 @@ public function paginate(\Illuminate\Pagination\LengthAwarePaginator $paginate,
33
'total' => $paginate->total(),
34
'current_page' => $paginate->currentPage(),
35
'per_page' => $paginate->perPage(),
36
+ 'last_page' => $paginate->lastPage(),
37
],
38
'data' => array_map(function ($item) use ($callable) {
39
if ($callable) {
0 commit comments