Welcome Guest, Not a member yet? Register   Sign In
builder's set() captured by model doesn't support object
#1

The documentation for update() says I can use
PHP Code:
$userModel
    
->whereIn('id', [1,2,3])
    ->set(['active' => 1])
    ->update(); 
and the documentation for $builder->set() says set() also accepts objects, but it appears the set() on models doesn't support objects
Reply


Messages In This Thread
builder's set() captured by model doesn't support object - by lukmim - 07-19-2021, 07:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB