Laravel 分页问题
我使用的是laravel5.2自带的分页系统,发现在使用
$data = $query->paginate(10,array('a', 'b', 'c'));
按理说应该查询的是
select a,b,c from test limit 10 offset 0;
和
select count(星号) as aggregate from test;
可是最后执行select count(星号) as aggregate from test;的时候却是执行的select count(a,b,c) as aggregate from test;然后报错,麻烦谁指点一下这是laravel本身的问题还是我的使用方法错误,我改怎么改
推荐文章: