joshbrw / laravel-validation-rule-registration by joshbrw

A package that is designed to help aid rapid development and registration of custom Validation Rules in Laravel
3,049
0
1
Package Data
Maintainer Username: joshbrw
Maintainer Contact: josh@joshbrown.me (Josh Brown)
Package Create Date: 2017-02-22
Package Last Update: 2017-11-29
Language: PHP
License: MIT
Last Refreshed: 2024-11-19 03:00:04
Package Statistics
Total Downloads: 3,049
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 1
Total Open Issues: 0

laravel-validation-rule-registration

A package that is designed to help aid rapid development and registration of custom Validation Rules in Laravel

Usage

  1. Create your Validation Rule class, ensure it implements the Joshbrw\ValidationRule\Contracts\ValidationRule contract.
  2. In your service provider use RegistersValidationRules
  3. 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);