Bug description
I've just upgraded from v4.48 to v4.55 and the code I used to get the paginator is no longer working.
@php($articles = Statamic::tag('collection:articles')->paginate(10))
{!! $articles['paginate']['auto_links']['paginator']->links() !!}Is there a recommended way of using Statamic::tag() to get a custom pagination view?
When on v4.48 the custom view is used resources/views/vendor/pagination/tailwind.blade.php. But now the LengthAwarePaginator does not seem to be in the return array at all. Using $articles['paginate']['auto_links'] doesn't use the custom view.
How to reproduce
@php($articles = Statamic::tag('collection:articles')->paginate(10))
{!! $articles['paginate']['auto_links']['paginator']->links() !!}Logs
No response
Environment
EnvironmentApplication Name: SiteLaravel Version: 10.48.4PHP Version: 8.3.3Composer Version: 2.7.1Environment: localDebug Mode: ENABLEDURL: site.testMaintenance Mode: OFFCacheConfig: NOT CACHEDEvents: NOT CACHEDRoutes: NOT CACHEDViews: NOT CACHEDDriversBroadcasting: logCache: statamicDatabase: sqliteLogs: singleMail: mailgunQueue: syncSession: fileStatamicAddons: 1Antlers: runtimeSites: 1Stache Watcher: EnabledStatic Caching: DisabledVersion: 4.55.0 PROStatamic Addonsstatamic/seo-pro: 5.4.1
Installation
Existing Laravel app
Antlers Parser
None
Additional details
No response
Bug description
I've just upgraded from v4.48 to v4.55 and the code I used to get the paginator is no longer working.
Is there a recommended way of using
Statamic::tag()to get a custom pagination view?When on v4.48 the custom view is used
resources/views/vendor/pagination/tailwind.blade.php. But now theLengthAwarePaginatordoes not seem to be in the return array at all. Using$articles['paginate']['auto_links']doesn't use the custom view.How to reproduce
Logs
No response
Environment
Installation
Existing Laravel app
Antlers Parser
None
Additional details
No response