Skip to content

Commit 4615188

Browse files
[5.x] Upgrade Guide: Add note about pagination view changes (#1312)
Co-authored-by: Jason Varga <[email protected]>
1 parent 1b3c956 commit 4615188

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

content/collections/docs/4-to-5.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,24 @@ We recommend making the code changes. However, if you just want to require the p
129129
composer require laravel/helpers
130130
```
131131

132+
### Statamic will now use your app's default pagination view
133+
**Affects apps using the `auto_links` pagination variable in templates.**
134+
135+
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`.
136+
137+
To avoid making code changes, you may wish to change the default view back to `pagination::default`:
138+
139+
```php
140+
// app/Providers/AppServiceProvider.php
141+
142+
use Illuminate\Pagination\Paginator; // [tl! ++]
143+
144+
public function boot(): void
145+
{
146+
Paginator::defaultView('pagination::default'); // [tl! ++]
147+
}
148+
```
149+
132150
## Low impact changes
133151

134152
### Validation rule changes

0 commit comments

Comments
 (0)