Skip to content

Commit

Permalink
Documentation for date seed
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkwinkelmann committed Mar 18, 2021
1 parent fd31541 commit 8c8bca7
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 @@ -12,7 +12,10 @@ If you do not create new discussions, random existing discussions will be picked

A new button is added on discussions if you want to generate replies to that discussion only.

The script can be called via the API at `/api/fake-data` with parameters `user_count`, `discussion_count` and `posts_count`.
The date seed is made of two options: start date will be parsed by `Carbon::parse`, so it accepts dates in many formats (example `2021-01-01 15:00:00`) as well as human time (example `2 days ago`).
Date interval is in seconds.

The script can be called via the API at `/api/fake-data` with parameters `user_count`, `discussion_count`, `posts_count`, `date_start` and `date_interval`.
If you pass zero for users or discussions, you can provide `user_ids` and/or `discussion_ids` to restrict which users/discussions can be picked.
`tag_ids` can be used to specify an array of tags to apply to all created discussions.

Expand Down

0 comments on commit 8c8bca7

Please sign in to comment.