【ThinkPHP5使用paginate分页后数组无法遍历【解决方法】】使用items方法即可
$result=db('table')->paginate(10,false,['query'=>request()->param()]);
$items=$result->items();
foreach($items as $k=>$v){
$items[$k]['scenic']=db('scenic_introduction')->where('id',$v['scenic_id'])->value('address');
}