Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ash92's avatar
Level 1

Generate Round Robin Schedule in Laravel.

I have a laravel project where I am required to generate a schedule for round robin league. For example I have some dates. And I have 10 teams. Each teams will play twice each other. Now I need to generate a schedule for this. I have included dates and teams here for reference: $dates = ['2022-07-30', '2022-07-31', '2022-08-01', '2022-08-02', '2022-08-03', '2022-08-04', '2022-08-05', '2022-08-06', '2022-08-07', '2022-08-08', '2022-08-09', '2022-08-10']; $teams = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J'];

In every single date there will be 3 matches a day.

Please someone can help me out in this?

0 likes
1 reply

Please or to participate in this conversation.