adonisjs hook befor save
snippet in javascript

adonisjs hook befor save

user7208

static boot() {
  super.boot();
  this.addHook('beforeSave', async userInstance => {
    ....
  })
}