In other projects, I'm using $this->app->alias(CustomPaginator::class, LengthAwarePaginator::class); in AppServiceProvider#register to use a custom pagination when using
For some reason, it doesn't work using the following pagination method:
$messagePreviews = $targetFolder->query()->all()->paginate(15);, it's always LengthAwarePaginator. Any ideas why?
And how do I deep sort folders alphabetically ascending by name? Everytime I use sortBy on getFolders, it only sorts the first level.
Also, I'm not really sure if this is the right way to a folder preview. The documentation is not really expressive for me I think.
Thank you.
By the way, your discord link does not work anymore.
In other projects, I'm using
$this->app->alias(CustomPaginator::class, LengthAwarePaginator::class);
inAppServiceProvider#register
to use a custom pagination when usingFor some reason, it doesn't work using the following pagination method:
$messagePreviews = $targetFolder->query()->all()->paginate(15);
, it's alwaysLengthAwarePaginator
. Any ideas why?And how do I deep sort folders alphabetically ascending by name? Everytime I use
sortBy
ongetFolders
, it only sorts the first level.Also, I'm not really sure if this is the right way to a folder preview. The documentation is not really expressive for me I think. Thank you.
By the way, your discord link does not work anymore.