讨论数量:
$builder 是一个对象,做的所有操作比如 ->where()
->orderBy()
实际上只是修改了对象自己内部的属性,返回值也都是 $this
所以不需要 $builder = $builder->where(xxxx)
$builder 是一个对象,做的所有操作比如 ->where()
->orderBy()
实际上只是修改了对象自己内部的属性,返回值也都是 $this
所以不需要 $builder = $builder->where(xxxx)
推荐文章: