-
-
Save uno-de-piera/3b20b504276ae2d4f01bcb9bbfde103f to your computer and use it in GitHub Desktop.
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
<?php | |
Validator::extend('valid_name', function ($attribute, $value, $parameters, $validator) { | |
return strlen($value) === 6 ? false : true; | |
}, __('El nombre debe tener al menos una logitud de 6 caracteres')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment