joshbrw/laravel-validation-rule-registration
A package that is designed to help aid rapid development and registration of custom Validation Rules in Laravel
3,057
| Install | |
|---|---|
composer require joshbrw/laravel-validation-rule-registration |
|
| Latest Version: | v0.1.7 |
| PHP: | >=7.0 |
| License: | MIT |
| Last Updated: | Nov 29, 2017 |
| Links: | GitHub · Packagist |
Maintainer: joshbrw
laravel-validation-rule-registration
A package that is designed to help aid rapid development and registration of custom Validation Rules in Laravel
Usage
- Create your Validation Rule class, ensure it implements the
Joshbrw\ValidationRule\Contracts\ValidationRulecontract. - In your service provider
use RegistersValidationRules - In the
boot()method of your service provider;- To register a validation rule:
$this->registerValidationRule('rule_name', RuleClass::class) - To register a validation replacer:
$this->registerValidationReplacer('rule_name', RuleClass::class);
- To register a validation rule:
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
634,760,849
9,707
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
408,553,772
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
387,976,821
4,658