diff --git a/pagination.md b/pagination.md index b925f6a539..f2b6440cc5 100644 --- a/pagination.md +++ b/pagination.md @@ -155,6 +155,10 @@ By default, the views rendered to display the pagination links are compatible wi {{ $paginator->links('view.name') }} +You may also pass any data that you need in your pagination view with the second argument: + + {{ $paginator->links('view.name', ['foo' => 'bar']) }} + However, the easiest way to customize the pagination views is by exporting them to your `resources/views/vendor` directory using the `vendor:publish` command: php artisan vendor:publish --tag=laravel-pagination