gpt4 book ai didi

php - 在整数上调用成员函数 where()

转载 作者:行者123 更新时间:2023-12-04 05:52:02 25 4
gpt4 key购买 nike

我收到此错误:

Call to a member function where() on integer

当我运行这段代码时:

DB::table('level_one_models')
->increment('followers', 1)
->where('active', '=', 1);

我做错了什么?

最佳答案

increment之前调用where:

DB::table('level_one_models')
->where('active', 1)
->increment('followers', 1);

关于php - 在整数上调用成员函数 where(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42614107/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com