Fix phone input (#201)
* Fix phone input * remove extra * fix factory * Fix phone input * Validate phone number rule * Prefill support for country only * Fix phone input error * fix tests --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -190,7 +190,7 @@ class AnswerFormRequest extends FormRequest
|
||||
}
|
||||
return $this->getRulesForDate($property);
|
||||
case 'phone_number':
|
||||
return [new ValidPhoneInputRule];
|
||||
return ['string', 'min:6', new ValidPhoneInputRule];
|
||||
default:
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user