Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Upgrade Guide: Add note about pagination view changes #1312

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions content/collections/docs/4-to-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down