x-laravel/validation-extend

Adds rules that may be required that are not in the Laravel validation class.

v1.0.0 2021-02-06 20:41 UTC

This package is auto-updated.

Last update: 2024-05-07 04:34:53 UTC


README

Latest Stable Version Total Downloads Dependents License

68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f582d4c61726176656c2f76616c69646174696f6e2d657874656e642f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572 StyleCI

Introduction

Adds rules that may be required that are not in the Laravel validation class.

Requirements

Laravel >=5.5. Other than that, this library has no requirements.

Install

$ composer require x-laravel/validation-extend

Example Usage

use Illuminate\Support\Facades\Validator;

$validator = Validator::make($request->all(), [
    'staff_name' => 'required|human_name',
]);

License

This package is open source software licensed under the MIT license.