DG Tournaments

DG Tournaments is tournament management software for disc golf. Directors use it to plan and run their events, and players use it to find them. The original got me hired at the Professional Disc Golf Association (PDGA). This is the rebuild on Laravel 13, Filament 5 and Livewire 4.

Payments built · Registration in review

  1. Planning, event pages and search · Built Nov 16
  2. Payments through Stripe Connect · Built Nov 17
  3. Player registration and checkout · In review
Started
Nov 16, 2026
Latest update
Nov 17
Status
In development, not deployed yet
Stack
Laravel 13, Filament 5, Livewire 4, Flux, MapLibre, Stripe Connect, Pest

Updates

· In review

Player registration

Players register from the event page and pay by card through Stripe Checkout. The spot is held while the player pays, and a full division has a waitlist. Directors manage entries on a registrations page, and withdrawing a player suggests the refund due under the PDGA's refund policy.

How it's built: Stripe's hosted Checkout, as a direct charge on the director's connected account. SettleRegistration asks Stripe for the checkout's state, then confirms the entry or releases the spot. It's idempotent, and it runs when the player returns and from a scheduled command, so registration needs no webhooks. FeeCalculator totals the entry fee, the PDGA's non-member fee, and a service fee when the director passes card fees to the player.

Payments with Stripe Connect

A director connects their own Stripe account on the tournament's Payments page, and entry fees are paid directly into it. A director can connect more than one account and choose one for each tournament.

How it's built: Stripe Connect on the Accounts v1 API with controller properties. The director gets the full Stripe Dashboard and pays their own Stripe fees, and Stripe collects the onboarding requirements and carries the liability for losses. Onboarding runs on Stripe's hosted pages through single-use account links. In tests the real SDK runs against a fake HTTP transport that fails any request without a queued response.

Tournament search

Players search by place and browse events on a map. Pins cluster as the map zooms out, and the list under the map shows what's in view.

/tournamentsScreenshot
The tournament search: a map of the United States with pins and grouped pins, a search box, and a list that starts with the Capital City Ice Bowl in Des Moines.

How it's built: The public site is Livewire 4 and Flux. The map is MapLibre GL with OpenFreeMap tiles and the Photon geocoder, so there are no map API keys. Queries go through a TournamentSearch service that runs SQL today and can move to Meilisearch without changing its callers.

Screenshots show demo data.

Event planning

Each tournament gets a plan: every step from booking the park to filing the post-event report, dated back from the event. Steps complete automatically as the director fills in the event details, and the public event page is published from the same panel.

/manage/redwood-roller-2027/planScreenshot
The plan page for a B-Tier event: 8 of 33 steps done, the next four steps with their dates, and the B-Tier requirements for sanctioning, holes, added cash and the amateur player pack.

How it's built: A multi-tenant Filament 5 panel with each tournament as a tenant. The plan isn't stored. PlanTemplate defines the steps for each tier in code, tournament_tasks holds only a director's changes, and TournamentPlan merges the two on read, so a new or reworded step reaches every existing tournament.

The plan
PlanTemplatesteps per tier, in code
TournamentPlanmerged on read
tournament_tasksdone, skipped, added

PDGA tier checks

The plan page checks the event against the PDGA's standards for its tier: the sanctioning deadline, total holes, added cash and the amateur player pack.

How it's built: TierStandards is the single source for the numbers in the PDGA's tier chart (Competition Manual 5.05), and TierChecks compares a tournament against it. When the PDGA publishes new standards, one class changes. The checks are covered by Pest datasets.

tests/Feature/Planning/TierChecksTest.phpPHP
it('checks the total holes against the tier minimum', function (
    Tier $tier, int $rounds, CheckStatus $expected,
) {
    $tournament = Tournament::factory()->tier($tier)->create([
        'rounds_count' => $rounds,
        'holes_per_round' => 18,
    ]);

    expect(tierCheck($tournament, 'Holes')->status)->toBe($expected);
})->with([
    'one round is enough for a C-Tier' => [Tier::C, 1, CheckStatus::Pass],
    'one round is short for a B-Tier' => [Tier::B, 1, CheckStatus::Fail],
    'two rounds meet a B-Tier' => [Tier::B, 2, CheckStatus::Pass],
    'two rounds are short for an A-Tier' => [Tier::A, 2, CheckStatus::Fail],
    'three rounds meet an A-Tier' => [Tier::A, 3, CheckStatus::Pass],
]);

Decisions

Decision 01Nov 16

Filament for directors, Livewire for players

  • Context: Directors need an admin UI for each event, and players need public pages.
  • Decision: A multi-tenant Filament panel with each tournament as a tenant. Search and event pages in Livewire and Flux.
  • Why: Both run in one codebase on one set of models.
Decision 02Nov 16

Elite Series and Majors are out of scope

  • Context: The PDGA's standards run from C-Tiers to Majors.
  • Decision: A, B and C-Tiers and unsanctioned events.
  • Why: Elite Series events and Majors have their own requirements.
Decision 03Nov 17

Scoring stays in DG Live Scores

  • Context: DG Live Scores, my live scoring app, already runs scorecards.
  • Decision: No scorecards or leaderboards here.
  • Why: It's live, so scoring isn't built again here.
Decision 04Nov 17

Directors are paid directly

  • Context: Entry fees belong to the tournament's director.
  • Decision: Charges are made on the director's own Stripe account, and all payment code goes through a PaymentGateway contract.
  • Why: The platform never holds funds, and PayPal can be added beside Stripe without changing callers.

What's next

  1. Next
    Sponsorship packages
  2. Later
    Emails to followers about new and changed events
  3. Later
    Meilisearch for search, and a geocoder that can take production traffic
  4. 2027
    Run one real event

Follow along

Updates are posted here as features are built. The repo is private.

I build client projects the same way. Work with me