Creating Posts in Factory
jefferose opened this issue · 1 comments
jefferose commented
In my factory, I'm creating 10 posts and most everything is working, but the Trix "field" column is set ot 0 instead of "content" as it is when I create a post via the UI.
'post-trixFields' => $this->faker->paragraphs(1),
I'm sure it's simple, but I haven't figured out how to set the column properly. Since it's a seed/factory I don't need it too often, but it'd be nice to understand.
jefferose commented
This seemed to be the solution
['content' => $this->faker->paragraphs(1, true)]