Answers for "adonis hasone"

5

adonis hasone

const Model = use('Model')

class User extends Model {
  profile () {
    return this.hasOne('App/Models/Profile')
  }
}

module.exports = User
Posted by: Guest on November-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language