PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Chun-Sheng, Li   Laravel Simple Validation   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Laravel Simple Validation
Add validation rules to use in Laravel application
Author: By
Last change:
Date: 3 months ago
Size: 814 bytes
 

Contents

Class file image Download

Build Status Coverage Status

Simple validation rule

What?

A simple validation to your Laravel 5.5+ Validation Rules. Including IP, e-mail validations and so on.

Install

Install with composer:

composer require lee/laravel-simple-validation

Usage

In your controllers, add the validation with your other rules:


use Lee\LaraSimpleValidation;

$request->validate([
    'email' => 'required|string|email'
    'ip' => ['required', new LaraSimpleValidation],
]);