File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11# Laravel Optimistic Locking
22![ Build Status] ( http://img.shields.io/travis/reshadman/laravel-optimistic-locking/master.png?style=flat-square )
33
4- Adds optimistic locking feature to eloquent models.
4+ Adds optimistic locking feature to Eloquent models.
55
66## Installation
77``` bash
88composer require reshadman/laravel-optimistic-locking
99```
1010
11- > This package supports Laravel 5.5.* and 5.6.* .
11+ > This package supports Laravel 5.5.* and 5.6.* .
1212
1313## Usage
1414
@@ -24,7 +24,7 @@ class BlogPost extends Model {
2424}
2525```
2626
27- and add the ` lock_version ` integer field to the table of the model:
27+ and add the integer ` lock_version ` field to the table of the model:
2828``` php
2929<?php
3030
@@ -36,7 +36,8 @@ different processes **CONCURRENTLY** then the following exception
3636will be raised:
3737
3838```
39- \Reshadman\OptimisticLocking\StaleModelLockingException
39+ <?php
40+ \Reshadman\OptimisticLocking\StaleModelLockingException::class
4041```
4142
4243You should catch the above exception and act properly based
You can’t perform that action at this time.
0 commit comments