Laravel pagination pretty URL

后端 未结 6 1036
孤街浪徒
孤街浪徒 2020-11-27 19:35

Is there a way to get a pagination pretty URL in Laravel 4?

For example, by default:

http://example.com/something/?page=3

And what

6条回答
  •  离开以前
    2020-11-27 20:21

    The only way I can think of doing this is by extending the Paginator class to do the matching. However, just know that it may conflict with third-party packages and other classes/libraries. The current method is designed to work with nearly all classes/libraries/packages.

    Perhaps you could try the following:

    http://packalyst.com/packages/package/desmart/pagination ('pagination' by 'desmart')

提交回复
热议问题