Last active
September 25, 2015 13:54
-
-
Save redgluten/f38092e3a6eea6527b9f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Check for correct phone or fax french format | |
Validator::extend('phone', function($attribute, $value, $parameters) { | |
return preg_match('/^0[1-9][0-9]{8}$/', strval($value)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment