laravel/laravel — pull request #984 by resmo (2012-07-20 23:20:55+00:00)
Title: Implemented Optimistic Locking

I implemented with an additional where, no extra query is needed. This closes #922.

In the DB: Field `lock_version` (INT) must be set.

In model: