2017 © Pedro Peláez
 

library laravel-validations

Common Laravel Validation Rules

image

mtrajano/laravel-validations

Common Laravel Validation Rules

  • Sunday, November 19, 2017
  • by mtrajano
  • Repository
  • 2 Watchers
  • 1 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Common Laravel Validation Rules

A set of common validation rules that I found myself using throughout a lot of my applications. Laravel's Validator will be extended with the set of rules so no configuration is required., (*1)

Installation

Simply install via composer:, (*2)

composer require mtrajano/laravel-validations

For Laravel <=5.4, make sure to also add the service provider to your config/app.php class:, (*3)

Mtrajano\LaravelValidations\LaravelValidationsServiceProvider::class

Validation Rules

  • zipcode: US ZIP and ZIP+4 formats
  • latitude: Any float value between -90 and 90, inclusive
  • longitude: Any float between between -180 and 180, inclusive
  • routing: Must be a valid routing number passing the ABA checksum
  • countrycode: Valid country code (either ISO2 or ISO3 formats)
  • phone: Valid US phone number
  • uuid: A valid Universally Unique ID according to RFC 4122

Contributing

Pull requests and issues are welcome!, (*4)

The Versions

19/11 2017

dev-master

9999999-dev https://github.com/mtrajano/laravel-validations

Common Laravel Validation Rules

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

by Mauricio Trajano

laravel validation rules laravel-validations