Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict'
- const Factory = use('Factory')
- const Hash = use('Hash')
- Factory.blueprint('App/Models/User', async (faker) => {
- return {
- username: faker.username(),
- email: faker.email({ domain: "example.com"}),
- password: await Hash.make(faker.password())
- }
- })
Add Comment
Please, Sign In to add comment