Created
May 2, 2020 21:35
-
-
Save leihuagh/05f39f78544034b6371fbfe9e11a6847 to your computer and use it in GitHub Desktop.
laravel first name last validation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'first_name' => ['required', 'string', 'regex:/^[A-Z][a-z]*$/', 'min:3', 'max:25'], | |
'last_name' => ['required', 'string', 'regex:/^[A-z][A-z\s\.\']+$/', 'min:3', 'max:25'], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment