mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Sublevel the pagination meta
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
9365c62d08
commit
561a90d9cb
|
@ -8,7 +8,7 @@ class DatatablesTransformer
|
||||||
{
|
{
|
||||||
$objects_array['total'] = $paginator->total();
|
$objects_array['total'] = $paginator->total();
|
||||||
$objects_array['rows'] = $objects;
|
$objects_array['rows'] = $objects;
|
||||||
$objects_array['meta'] = [
|
$objects_array['meta']['pagination'] = [
|
||||||
'per_page' => $paginator->perPage(),
|
'per_page' => $paginator->perPage(),
|
||||||
'current_page' => $paginator->currentPage(),
|
'current_page' => $paginator->currentPage(),
|
||||||
'last_page' => $paginator->lastPage(),
|
'last_page' => $paginator->lastPage(),
|
||||||
|
|
Loading…
Reference in a new issue