Created
July 2, 2018 23:13
-
-
Save diego3g/950c39267b8c671b673756eec4ab9dbf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const Model = use('Model') | |
const Hash = use('Hash') | |
class User extends Model { | |
// código existente | |
properties () { | |
return this.hasMany('App/Models/Property') | |
} | |
} | |
module.exports = User |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment