Updated Validation

This commit is contained in:
Devansh 2022-05-04 20:15:10 +05:30
parent 472eb9cf46
commit 9b03696cba
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class AlphaNumericSpace implements Rule
*/
public function passes($attribute, $value)
{
return preg_match('/^[a-zA-Z0-9\s]+$/', $value);
return preg_match('/[a-zA-Z0-9\s]+/', $value);
}
/**