Replies: 1 comment
-
Hey @jeyzur You need to indent ---
pagination:
collection: posts
perPage: 5
--- |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I set up a posts page (posts.blade.php) with pagination in the header followed by using $pagination in a foreach loop but after I save, via watch, I keep getting an error that $pagination is undefined. I thought that the pagination key being in the header would make $pagination available. Here's the code:
`---
pagination:
collection: posts
perPage: 7
foreach($pagination->items as post)
...
`
Beta Was this translation helpful? Give feedback.
All reactions