I get this error:
Call to a member function where() on integer
when I run this code:
DB::table('level_one_models')
->increment('followers', 1)
->where('active', '=', 1);
What am I doing wrong?
Call where before increment:
DB::table('level_one_models')
->where('active', 1)
->increment('followers', 1);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With