Skip to content

Commit e26a7a0

Browse files
authored
Update README.md
1 parent 8f4a386 commit e26a7a0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
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
88
composer 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
3636
will be raised:
3737

3838
```
39-
\Reshadman\OptimisticLocking\StaleModelLockingException
39+
<?php
40+
\Reshadman\OptimisticLocking\StaleModelLockingException::class
4041
```
4142

4243
You should catch the above exception and act properly based

0 commit comments

Comments
 (0)