JesseObrien/laravel-cheatsheet

Little bug in update code

Closed this issue · 3 comments

DB::table('name')->where('name', '=', 'John')
->update(array('email', 'john@example2.com'));

should be:

DB::table('name')->where('name', '=', 'John')
->update(array('email' => 'john@example2.com'));

Thank you!!!

Can this be closed, since #56 was merged?

Yep! Sorry I missed that.

Yep! Sorry I missed that.