I am trying to validate the telephone number using the regix. but it is giving me error:
$validator=Validator::make($request->all(),[
'name'=>'required',
'telephone'=>'regix:^[[0-9]\-\+]{9,15}$|required|unique:telephone',
'email'=>'unique:telephone',]);
the error is:
Method [validateRegix] does not exist.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire