Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

laravel validation empty html tag

Validator::extend('not_empty_html', function ($attribute, $value) {
    return !empty(trim(strip_tags($value)));
});
Source by github.com #
 
PREVIOUS NEXT
Tagged: #laravel #validation #empty #html #tag
ADD COMMENT
Topic
Name
4+1 =