Open djagya opened 7 years ago
Hi, Is there any way to automatically create a row inside the pivot table for a model? For example: Post <-> Author
Post
Author
If I want to create a Post related to an Author, how do I specify a definition for that? Unfortunately that doesn't work:
$fm->define(Post::class)->setDefinitions([ 'title' => Faker::name(), 'author' => 'factory|Author', ]);
Should I do that with a custom maker?
Hi, Is there any way to automatically create a row inside the pivot table for a model? For example:
Post
<->Author
If I want to create a
Post
related to anAuthor
, how do I specify a definition for that? Unfortunately that doesn't work:Should I do that with a custom maker?