Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/5.1' into 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jul 2, 2015
2 parents 75651ca + 455968f commit 60d2128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ Of course, in addition to inserting records into the database, the query builder

The query builder also provides convenient methods for incrementing or decrementing the value of a given column. This is simply a short-cut, providing a more expressive and terse interface compared to manually writing the `update` statement.

Both of these methods accept at least one argument: the column to modify. An second argument may optionally be passed to control the amount by which the column should be incremented / decremented.
Both of these methods accept at least one argument: the column to modify. A second argument may optionally be passed to control the amount by which the column should be incremented / decremented.

DB::table('users')->increment('votes');

Expand Down

0 comments on commit 60d2128

Please sign in to comment.