create(); User::factory()->create([ "name" => "Test User", "email" => "test@example.com", ]); $user = User::find(1); $institutions = Institution::factory(10)->create(); $accounts = Account::factory(10)->create(); foreach ($accounts as $account) { UserAccount::create([ "user_id" => $user->id, "account_id" => $account->id, ]); } Transaction::factory(200)->create(); } }