Laravel 5.5. Custom Validator Rules

Laravel 5.5. Custom Validator Rules

A new feature coming to Laravel 5.5 is a new feature for adding custom validation rules and Taylor has a written up a quick tutorial on it.

Here is an example of the validation:

and here is the ValidRepository class that checks:

For complete information on this take a look at Taylor’s post which goes into details on it all.


Filed in: Laravel 5.5 / Validation


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Senior Laravel Engineer
Remote okay (must already live in USA)
Hawthorne Effect
Senior Software Engineer (Remote - Contract)
Remote
Koodi Systems
PHP Developer
Pittsburgh / Remote
Sequoia Waste Solutions
Software Developer
Eindhoven
Simac IDS
Application Developer Level II (CakePHP / MySql / Vue.js)
Lancaster, PA
Harbor Compliance
FULL STACK LARAVEL DEVELOPER
LONDON - WEST END
AMPERSAND HEATLH
Mid/Senior Laravel Developer - U.S. Only
Kenner, Louisiana
Profit Miner Technologies