diff --git a/content/collections/docs/4-to-5.md b/content/collections/docs/4-to-5.md index 6543e30c1..73fc788f4 100644 --- a/content/collections/docs/4-to-5.md +++ b/content/collections/docs/4-to-5.md @@ -129,6 +129,24 @@ We recommend making the code changes. However, if you just want to require the p composer require laravel/helpers ``` +### Statamic will now use your app's default pagination view +**Affects apps using the `auto_links` pagination variable in templates.** + +Previously, Statamic used the `pagination::default` view to rendering pagination links. In Statamic 5, it will use your app's default pagination view, typically `pagination::tailwind`. + +To avoid making code changes, you may wish to change the default view back to `pagination::default`: + +```php +// app/Providers/AppServiceProvider.php + +use Illuminate\Pagination\Paginator; // [tl! ++] + +public function boot(): void +{ + Paginator::defaultView('pagination::default'); // [tl! ++] +} +``` + ## Low impact changes ### Validation rule changes