Guest User

Untitled

a guest
Feb 22nd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. 'use strict'
  2.  
  3. const Factory = use('Factory')
  4. const Hash = use('Hash')
  5.  
  6. Factory.blueprint('App/Models/User', async (faker) => {
  7. return {
  8. username: faker.username(),
  9. email: faker.email({ domain: "example.com"}),
  10. password: await Hash.make(faker.password())
  11. }
  12. })
Add Comment
Please, Sign In to add comment