Laravel执行原生SQL之后再Paginate分页

用法

$sql = '(select * from users) cc';
$v = \DB::table(\DB::raw($sql))->paginate(10);

参考来源:https://www.jianshu.com/p/3a53c2fc57d0?tdsourcetag=s_pcqq_aiomsg

你可能感兴趣的:(Laravel执行原生SQL之后再Paginate分页)