截图:

Thinkphp5遇到Call to a member function toArray() on null_编程

在model里面添加 protected $resultSetType = 'collection';

class Kemu extends Model 
{
protected $resultSetType = 'collection';

}