diff --git a/CHANGELOG.md b/CHANGELOG.md index 79a1387..e93aea7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes to `laravel-validation-provider` will be documented in this file. +## v2.1.0 - 2024-03-08 +### Added +- Ability to define validation `rules`, `messages` and `attributes` by class properties. +- New core validation provider. + - `MapAttributesValidationProvider`. +- Fluent API. + - `map()` +- Documentation updates. + ## v2.0.0 - 2024-03-05 ### Added - Fluent API. diff --git a/README.md b/README.md index 24a88a9..0b823f1 100644 --- a/README.md +++ b/README.md @@ -397,8 +397,8 @@ class ExcludeAttributesValidationProvider extends AbstractValidationProvider {} $validationProvider = new ExcludeAttributesValidationProvider( ['one'], new CustomValidationProvider([ - 'one' => ['required',], - 'two' => ['required',] + 'one' => ['required'], + 'two' => ['required'] ]) ); $validationProvider->rules();