KarlHill69
3 weeks ago
167
4
Laravel

Password confirmation doesn't work

Posted 3 weeks ago by KarlHill69

Hello. My password confirmation doesn't work in form submission. Can you helpme. My code is-

class ResetPassword extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'password' => 'required|min:8',
            'password_confirmation' => 'required',
        ];
    }
}

Any tip?

Please sign in or create an account to participate in this conversation.