laravel inbulid validation blade page code example
Example 1: laravel validation
Validator::extend('foo', 'FooValidator@validate');
Example 2: laravel validation
Validator::extendImplicit('foo', function ($attribute, $value, $parameters, $validator) {
return $value == 'foo';
});