Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel validation regex

$this->validate(request(), [
    'projectName' => 
        array(
            'required',
            'regex:/(^([a-zA-Z]+)(d+)?$)/u'
        )
];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #validation #regex
ADD COMMENT
Topic
Name
9+9 =