Download the PHP package sedlatschek/laravel-conditional-equals-validation without Composer
On this page you can find all versions of the php package sedlatschek/laravel-conditional-equals-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sedlatschek/laravel-conditional-equals-validation
More information about sedlatschek/laravel-conditional-equals-validation
Files in sedlatschek/laravel-conditional-equals-validation
Package laravel-conditional-equals-validation
Short Description Additional rules for conditional equals validation
License MIT
Homepage https://github.com/sedlatschek/laravel-conditional-equals-validation
Informations about the package laravel-conditional-equals-validation
Laravel Conditional Equals Validation
This package provides additional validation rules for Laravel projects:
Equals
NotEquals
See Usage for all possibilites! Also know that the native method Rule::when
may be a better alternative to this package.
Installation
You can install the package via composer:
Usage
If
Evaluate one other fields value.
IfNot
Evaluate one other fields value.
IfAllOf
Evaluate if all of the given fields match the given value.
Example validation results:
IfAnyOf
Evaluate if any of the given fields match the given value.
Example validation results:
IfNoneOf
Evaluate if none of the given fields match the given value.
Example validation results:
Combined
All of the above conditions can be chained. The connection between each condition is seen as an and
operator.
Example validation results:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- Simon Sedlatschek
- All Contributors
License
The MIT License (MIT). Please see License File for more information.