mezie's avatar
Level 8

Is this possible in Laravel Pagination

Working with pagination in Laravel and I was wondering if ?page=N can be customized in any way. I dont want the query string to be included in my URI.

0 likes
9 replies
mezie's avatar
Level 8

Thanks. Went through the package but I see it still add "page" to the URI. Can't I get something like:

example.com/blog/2

mezie's avatar
Level 8

But with the package I will get:

example.com/blog/page/2

instead of:

example.com/blog/2

I want to remove "page" totally.

tomopongrac's avatar

Unfortunately I do not know how to achieve that in Laravel

martinbean's avatar

@mezie Why? Pagination is manipulating a resource. They are not “pages” unto themselves. This is what query strings are for.

mezie's avatar
Level 8

@martinbean I understand, am just looking for a work around of what am trying to achieve.

Please or to participate in this conversation.