Php dataTables内的Laravel | newQuery仅从数据库内的许多结果返回10个结果
不确定这里出了什么问题。在我的应用程序/数据表中,我使用了以下方法:Php dataTables内的Laravel | newQuery仅从数据库内的许多结果返回10个结果,php,mysql,laravel,laravel-5,eloquent,Php,Mysql,Laravel,Laravel 5,Eloquent,不确定这里出了什么问题。在我的应用程序/数据表中,我使用了以下方法: public function query(ProductOrder $model) { return $model->newQuery()->with("product") ->where('product_orders.order_id', $this->id) ->select('product_orders.*')->
public function query(ProductOrder $model)
{
return $model->newQuery()->with("product")
->where('product_orders.order_id', $this->id)
->select('product_orders.*')->orderBy('product_orders.id', 'desc');
}
如您所见,我正在从product\u orders
表中提取内容,其中product\u orders.order\u id
=我传递的值。数据库中始终有10个以上的结果,但返回的结果始终限于10个。有人能帮我理解为什么吗?
newQuery对获取的行数是否有这样的自动限制