kcdev/laravel-validation-rules

A set of laravel validation rules

v1.0.0 2020-05-01 12:48 UTC

This package is auto-updated.

Last update: 2024-05-29 04:41:38 UTC


README

A set of laravel validation rules

Installation

You can install the package via composer:

composer require kcdev/laravel-validation-rules

You need to publish:

php artisan vendor:publish --provider="Kcdev\ValidationRules\ValidationRulesServiceProvider"

Available Rules

  • basic_password
  • current_password

Usage

$request->validate([
    'old_password' => 'required|current_password',
    'new_password' => 'required|basic_password|confirmed',
]);

Security

If you discover any security related issues, please email amiruddinmarmul@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.