Skip to content

Commit

Permalink
Update LogsController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI committed Aug 22, 2018
1 parent b86610a commit 8c36357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/Api/LogsController.php
Expand Up @@ -22,7 +22,7 @@ public function index()

$perPage = 6;

$currentPageSearchResults = $collection->slice(($currentPage - 1) * $perPage, $perPage)->all();
$currentPageSearchResults = $collection->slice(($currentPage - 1) * $perPage, $perPage)->values()->toArray();

return new LengthAwarePaginator($currentPageSearchResults, count($collection), $perPage);
}
Expand Down

0 comments on commit 8c36357

Please sign in to comment.