Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

enie letter validation laravel regex

return [
                    'fname' => 'required|max:255|regex:/^[a-zA-ZÑñs]+$/',
                    'lname' => 'required|max:255|regex:/^[a-zA-ZÑñs]+$/',
                    'mname' => 'max:255|alpha',
                     'file' => 'image|mimes:jpg,jpeg,png',
               'contact_no' => 'regex:/^[-0-9+]+$/',
            'date_of_birth' => 'required|date_format:Y-m-d',
                'school_id' => 'required|exists:schools,id',
                'degree_id' => 'required|exists:degrees,id',
        ];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #enie #letter #validation #laravel #regex
ADD COMMENT
Topic
Name
6+9 =