lee / laravel-simple-validation
add some useful validations rule to validate form values
v1.0
2018-11-07 06:33 UTC
Requires
- php: ^7.0
- laravel/framework: ^5.5
Requires (Dev)
- php-coveralls/php-coveralls: ^1.0
- phpunit/phpunit: ^6.5 || ^7.0
This package is auto-updated.
Last update: 2024-12-07 21:02:09 UTC
README
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], ]);