crud de canales de venta y sectores

This commit is contained in:
2021-07-12 10:23:15 -04:00
parent 6eba4aa52b
commit 4f1dfd1221
8 changed files with 228 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ class PaginatorService extends ServiceProvider {
return [
'per_page' => $perPage,
'from' => $skip + 1,
'from' => max(0, $skip + 1),
'to' => min($total, $skip + $perPage),
'total' => $total,
'current_page' => $currentPage,