Skip to content
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.

Commit

Permalink
Updated documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeraymonddowning committed May 17, 2020
1 parent 53b3f50 commit 2bfd34d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,11 @@ Allows you to create multiple models, persist them to the database, and return t
method call. A very useful shortcut when you don't need complex relationship mapping. You may pass in the count of
models you wish to create, along with attributes that should be given to those models.

#### `::craft(...$attributes, int $count)`
Alternate syntax for `craft` as described above, which more closely matches `factory` method baked into Laravel.

#### `::craft(array $attributes = null)`
If you only need to craft one model, you can omit the count. It will return the model instead of a collection.
If you only need to craft one model, you can omit the count. It will return a single model instead of a collection.

#### `->create(...$attributes)` or `(...$attributes)`
Similar to the Laravel factory `create` command, this will create the models, persisting them to the database.
Expand Down

0 comments on commit 2bfd34d

Please sign in to comment.