Laravel custom validation message parameter
问题 I'm using laravel 5.1. I have a summernotejs form element. I've created a custom validation rule successfully, which takes the HTML provided from the form input, strips the tags, and does a strlen() call on the text content. Therefore I can see the length of a message without any tags in it. This is my validation rule: Validator::extend('strip_min', function ($attribute, $value, $parameters, $validator) { return strlen(strip_tags($value)) >= $parameters[0]; }); I call the validation rule by