[英]Call to a member function where() on integer
我收到此错误:
调用成员函数where()对整数
当我运行此代码时:
DB::table('level_one_models')
->increment('followers', 1)
->where('active', '=', 1);
我究竟做错了什么?
拨打where
前increment
:
DB::table('level_one_models')
->where('active', 1)
->increment('followers', 1);
$org = organization_model::where('status',1)
->count('I'd);
return view('home')
->with('org',$org);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.