Skip to content

Commit 5a29192

Browse files
committed
Updated readme
1 parent bd1795a commit 5a29192

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

readme.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
[![TravisCI](https://img.shields.io/travis/korridor/laravel-model-validation-rules?style=flat-square)](https://travis-ci.org/korridor/laravel-model-validation-rules)
66
[![StyleCI](https://styleci.io/repos/208495858/shield)](https://styleci.io/repos/208495858)
77

8-
This package is an alternative to the Laravel built-in validation rules `exist` and `unique`.
9-
This has the following advantages:
8+
This package is an alternative to the Laravel built-in validation rules `exists` and `unique`.
9+
It uses Eloquent models instead of directly querying the database.
1010

11-
- It uses existing models instead of directly querying the database.
12-
- The rule can be easily extended with the Eloquent builder.
13-
- Softdeletes are working
11+
**Advantages**
12+
- The rule can be easily extended with the Eloquent builder. (scopes etc.)
13+
- Softdeletes are working out of the box.
14+
- Logic implemented into the models work in the validation as well. (multi tenancy system, etc.)
1415

1516
## Installation
1617

@@ -29,11 +30,14 @@ of the package to the `resources/lang/vendor/modelValidationRules` folder.
2930
php artisan vendor:publish --provider="Korridor\LaravelModelValidationRules\ModelValidationServiceProvider"
3031
```
3132

32-
## Rules
33+
### Requirements
3334

34-
### ExistEloquent
35+
This package is tested for the following Laravel versions:
3536

36-
### UniqueEloquent
37+
- 6.0
38+
- 5.8
39+
- 5.7 (stable only)
40+
- 5.6 (stable only)
3741

3842
## Usage examples
3943

@@ -107,4 +111,4 @@ project [laravel-validation-rules](https://github.com/spatie/laravel-validation-
107111

108112
## License
109113

110-
The MIT License (MIT). Please see [license file](license.md) for more information.
114+
This package is licensed under the MIT License (MIT). Please see [license file](license.md) for more information.

0 commit comments

Comments
 (0)