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

Added note about passing data to paginator view #2977

Merged
merged 1 commit into from
Jan 17, 2017
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
4 changes: 4 additions & 0 deletions pagination.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down