Does this explain it well? https://laracasts.com/discuss/channels/general-discussion/generating-a-route-with-a-query-string-parameter
Apr 11, 2015
10
Level 1
How to do this?
Hi there, For a forum I'm making, I'm working on a search feature that currently searches through users, topics, and posts. I also use pagination within the topic view to get rid of the clutter, and that's what this problem has to do with. So anyway...
Say Bob posts on a topic and there are 5 posts (5 per page). I already have it so Bob gets redirected when he replies, assuming a new page is created. So here's the problem. How do I figure out what page an object within a paginated array is on? (Basically, how can I figure out what page the post is on?)
I don't know if this is possible, but if it is, can someone please help?
Please or to participate in this conversation.