Laravel 4 如何将laravel默认分页滑块范围从13更改为5

Laravel 4 如何将laravel默认分页滑块范围从13更改为5,laravel-4,pagination,Laravel 4,Pagination,我到处搜索如何更改页数,然后laravel将分页从列出所有页面更改为使用分页滑块。默认数字是13,但我如何将其更改为5或7?默认数字13硬编码为Laravel。文件中的注释解释了原因: // The hard-coded thirteen represents the minimum number of pages we need to // be able to create a sliding page window. If we have less than that, we // wil

我到处搜索如何更改页数,然后laravel将分页从列出所有页面更改为使用分页滑块。默认数字是13,但我如何将其更改为5或7?

默认数字13硬编码为Laravel。文件中的注释解释了原因:

// The hard-coded thirteen represents the minimum number of pages we need to
// be able to create a sliding page window. If we have less than that, we
// will just render a simple range of page links insteadof the sliding.
解决方法是创建自己的分页视图,然后将
app/config/view/
更改为指向自定义视图,如中所述