Indicative not working well with Route Validator

This post was flagged by the community and is temporarily hidden.

1 Like

Quick look to your code, please fix your indicative rules from:

class UpdateCompany {
  get rules () {
    return {
      name:'min,7|max,35',
    }
  }

to:

class UpdateCompany {
  get rules () {
    return {
      name:'min:7|max:35',
    }
  }

Thanks @begueradj, but the main issue I’m having is with sanitization on updates.

Well, still you would need to fix that thing , I think, that is the right syntax as per documentation :slight_smile:

1 Like