分页转集合
paginate($this->page_size);
$r =
r
−
>
g
e
t
C
o
l
l
e
c
t
i
o
n
(
)
−
>
t
r
a
n
s
f
o
r
m
(
f
u
n
c
t
i
o
n
(
r->getCollection()->transform(function (
r−>getCollection()−>transform(function(model) {
});
查看sql执行
#打印sql
\DB::connection()->enableQueryLog();
##sql执行
dd(\DB::getQueryLog());