How to use Laravel's seeder factory with specific number of random existing models
My question is quite similar to this unanswered question. I'm making a 2v2 ladder system in Laravel 11. I have 2 models: Users Games There's a pivot table between them with an added team_user column, defining which team the user…