Skip to content

Commit

Permalink
JhumanJ#170-ENH: Updated phone number rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahtritus committed Sep 10, 2023
1 parent 8ef193b commit 06b15ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Rules/ValidPhoneInputRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ public function passes($attribute, $value)
if (count($parts) < 2) {
return false;
}
return strlen($parts[1]) >= 10;
return strlen($parts[1]) >= 5;
}

public function message()
{
return 'The :attribute must be a string that starts with a "+" character and must be at least 10 digits long.';
return 'The :attribute must be a string that starts with a "+" character and must be at least 5 digits long.';
}
}

0 comments on commit 06b15ba

Please sign in to comment.