mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-13 08:45:01 +00:00
helper refactoring
This commit is contained in:
@@ -1218,7 +1218,7 @@ if (! function_exists('extractItemsFromGetAttribute')) {
|
|||||||
int $totalEntries
|
int $totalEntries
|
||||||
): array {
|
): array {
|
||||||
$uri = request()->fullUrl();
|
$uri = request()->fullUrl();
|
||||||
$perPage = config('vuefilemanager.paginate.perPage');
|
$perPage = intval(config('vuefilemanager.paginate.perPage'));
|
||||||
$lastPage = ceil($totalEntries / $perPage);
|
$lastPage = ceil($totalEntries / $perPage);
|
||||||
$currentPage = request()->input('page') === 'all'
|
$currentPage = request()->input('page') === 'all'
|
||||||
? 1
|
? 1
|
||||||
|
|||||||
Reference in New Issue
Block a user