I have a comments table that belongsTo both a user table and an article table.
How can the table be seeded so that both the user and article foreign key is complete?
After looking through various examples, I found that you could seed the user then attach/save other models...
factory(User::class, 100)->create()->each(function ($user) {
$articles = factory(Article::class, 5)->make();
$user->article()->saveMany($articles);
But how can the same be done for comments with two foreign keys?