I have some struggles to seed foreign key at this table:
with this factory:
and this seeder:
I usually get this error:
I have tried to comment those fields at the table and just to make some posts without them and then I get the same error just for the field 'updated_at'.
Any ideas on how to solve this? :D
Thanks!
CodePudding user response:
Set asText
for paragraphs
and words
to true:
$this->faker->paragraphs(3, true)
These are methods' signatures:
@method array|string words($nb = 3, $asText = false)
@method array|string paragraphs($nb = 3, $asText = false)