Tuesday, March 21, 2017

laravel 5.2 ->update not works

in my controller i have $data['column1'] = 1; It updates database with $x->update($data); Why if add $data['column2'] = 2; it ignores second parameter? I checked with dd($data); and it shows both parameters. I removed default value, which being inserted by mysql, but that did not help.



via Vit

Advertisement