Laravel Password & Password_Confirmation Validation

前端 未结 7 1533
甜味超标
甜味超标 2020-12-23 17:16

I\'ve been using this in order to edit the User Account Info:

$this->validate($request, [
    \'password\' => \'min:6\',
    \'password_confirmation\'          


        
7条回答
  •  时光说笑
    2020-12-23 17:50

    try confirmed and without password_confirmation rule:

    $this->validate($request, [
            'name' => 'required|min:3|max:50',
            'email' => 'email',
            'vat_number' => 'max:13',
            'password' => 'confirmed|min:6',
        ]);
    

提交回复
热议问题