PHP Classes

How to Implement Laravel Validation String Length, Email Addresses, and IP Addresses Using the Package Laravel Simple Validation: Add validation rules to use in Laravel application

Recommend this page to a friend!
  Info   View files Documentation   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-07-16 (2 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 11 This week: 11All time: 11,347 This week: 6Up
Version License PHP version Categories
laravel-simple-valid 1.0MIT/X Consortium ...5PHP 5, Libraries, Validation
Description 

Author

This package can add validation rules to use in the Laravel application.

It provides a class that implements several validation rules and can be used to validate values passed to requests processed by a Laravel application.

Currently it can validate:

- String values

- Email addresses

- IP addresses

- String value length

Picture of Chun-Sheng, Li
  Performance   Level  
Name: Chun-Sheng, Li <contact>
Classes: 35 packages by
Country: Taiwan Taiwan
Innovation award
Innovation award
Nominee: 16x

Winner: 1x

Documentation

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

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Files folder imagetests (1 file)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file LaraSimpleValidation.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file LaraSimpleValidationTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:11
This week:11
All time:11,347
This week:6Up