We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b59243d commit 0626de5Copy full SHA for 0626de5
README.md
@@ -287,6 +287,20 @@ export class CreateUsers implements SeedsInterface {
287
public async seed(factory: FactoryInterface): Promise<any> {
288
await factory
289
.get(User)
290
+ .create(10);
291
+ }
292
+
293
+}
294
+```
295
296
+With the second parameter in the `.get(<Entity>, <args>)` you are able to create different variations of entities.
297
298
+```typescript
299
+export class CreateUsers implements SeedsInterface {
300
301
+ public async seed(factory: FactoryInterface): Promise<any> {
302
+ await factory
303
+ .get(User, 'admin')
304
.create(1);
305
}
306
0 commit comments