Paginate 分页报错问题,是版本问题,部分数据结构改变,导致的 Unsupported operand types

1、修改 laravel-scout-elastic/src/ElasticsearchEngine.php

 

larave Elasticsearch scout  Unsupported operand types报错
 

 larave Elasticsearch scout  Unsupported operand types报错

 

 

public function getTotalCount($results)
{
return $results['hits']['total']['value'];
}

 

我的是修改这两个 

 

其它人反馈可能需要修改这个 

2、修改 laravel/scout/src/Builder.php

 

larave Elasticsearch scout  Unsupported operand types报错

 

相关文章:

  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
猜你喜欢
  • 2021-07-28
  • 2022-12-23
  • 2022-02-10
  • 2021-07-03
  • 2021-07-21
  • 2021-12-26
  • 2021-09-10
相关资源
相似解决方案