Skip to content

Commit

Permalink
Merge pull request laravel#1649 from thehamsterofgod/patch-1
Browse files Browse the repository at this point in the history
typo
  • Loading branch information
taylorotwell committed Jul 2, 2015
2 parents e7e2aef + eeb5c2d commit 455968f
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 455968f

Please sign in to comment.