Исправлена пагинация на главной

This commit is contained in:
2022-12-04 23:18:24 +08:00
parent 3204b26d8c
commit f18fb9dd7a

View File

@@ -47,7 +47,7 @@ class HomeController extends Controller
'updated_at' => $this->ini->updatedAt(),
'count' => $this->ini->playlists->count(),
'pages' => [
'count' => (int)($this->ini->playlists->count() / $per_page),
'count' => ceil($this->ini->playlists->count() / $per_page),
'current' => $page,
],
'playlists' => $list->toArray(),