same

Ensures the value of 2 fields are same.

const rules = {
  password_confirmation: 'same:password'
}

// or
const rules = {
  password_confirmation: [
    rule('same', ['password'])
  ]
}

For customized build, you can import this rule as follows.

import { same } from 'indicative/builds/validations'