lee/laravel-simple-validation

add some useful validations rule to validate form values

v1.0 2018-11-07 06:33 UTC

This package is auto-updated.

Last update: 2024-11-07 20:52:46 UTC


README

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],
]);