Community코딩 & 개발github.com

Taldres/laravel-waitlist

대기자 명단 통계 구축: 차트용 일별 가입 및 확인 수, 기간별 합계 및 전환율, 과거 특정일의 확인 수, 현재 대기자 수를 대시보드, 관리자 페이지, API 엔드포인트에 제공합니다.

laravel-waitlist란 무엇인가요?

이 스킬은 `taldres/laravel-waitlist` 패키지를 사용하는 Laravel 애플리케이션에서 대기자 명단 통계를 수집하고 보고하는 방법을 제공합니다. 주요 기능으로는 일별 활동 로그 기반의 시계열 데이터, 특정 시점의 스냅샷, 기간별 합계 및 전환율 계산, 과거 특정일의 확인 수 조회 등이 포함됩니다. Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 활용할 수 있으며, PHP 코드 예제와 함께 대시보드, 관리자 위젯, 주간 보고서 등에서 필요한 데이터를 정확하게 추출하는 방법을 설명합니다. 이 스킬은 `report()` 메서드로 활동 로그를, `snapshot()` 메서드로 현재 상태를 조회하는 두 가지 접근법을 구분하여 사용하며, 시간대 설정, 캐싱, 스코프 지정 등 실무에서 중요한 규칙과 안티 패턴을 함께 제시합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Taldres/laravel-waitlist/tree/HEAD/resources/boost/skills/laravel-waitlist-reporting

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Laravel Waitlist: 보고

이 스킬은 taldres/laravel-waitlist를 사용하는 애플리케이션에서 대기자 명단에 대한 수치(대시보드, 차트, 관리자 위젯, 주간 보고서)가 필요할 때 사용합니다.

주요 목표

  • 각 질문에 올바른 출처에서 답변: "무슨 일이 일어났는지"는 활동 로그, "지금 명단에 누가 있는지"는 snapshot()

워크플로우

1. 출처 선택

Waitlist::for('beta')->report()->between('2026-08-01', '2026-08-31')->totals();
// "8월에 확인된 230명": 활동 로그, 과거에 대한 사실

Waitlist::for('beta')->snapshot();
// "현재 명단에 197명": 주소, 현재에 대한 사실

이후 삭제가 발생해도 첫 번째 숫자는 변하지 않습니다. 카운트는 단계(step)이지 사람이 아닙니다: 누군가 떠났다가 돌아오면 두 번 확인됩니다.

2. 현재: snapshot()

$snapshot = Waitlist::for('beta')->snapshot();

$snapshot->pending;       // 확인 대기 중
$snapshot->confirmed;     // 명단에 있음
$snapshot->unsubscribed;  // 탈퇴함, 보존 기간 내
$snapshot->active();      // pending + confirmed
$snapshot->total();
$snapshot->toArray();     // JSON 준비 완료, 프로젝트 및 목록 포함

3. 기간: 합계

use Taldres\Waitlist\Enums\ActivityType;
use Taldres\Waitlist\Enums\EntryStatus;

$totals = Waitlist::for('beta')->report()->since(30)->totals();   // 최근 30일

$totals->signups();                       // 구독 + 재구독
$totals->of(ActivityType::Confirmed);
$totals->of(ActivityType::Unsubscribed, from: EntryStatus::Confirmed);  // 확인 후 탈퇴
$totals->confirmationRate();              // ?float, 아무도 가입하지 않았으면 null
$totals->confirmedChange();               // 확인된 수의 순 변화량

4. 차트: 일별 시계열

$series = Waitlist::for('beta')->report()->since(30)->daily()->fillGaps();

foreach ($series as $day) {
    $day->date;                       // CarbonImmutable
    $day->signups();
    $day->of(ActivityType::Confirmed);
}

$series->toArray();   // [{date, subscribed, resubscribed, confirmation_requested, confirmation_mailed, confirmed, unsubscribed, expired, erased, consent_granted, consent_withdrawn}]

fillGaps()는 활동이 없는 날짜를 추가하여 차트에 필요합니다.

5. 과거 특정일의 확인 수

Waitlist::for('beta')->report()->confirmedOn('2026-09-30');   // 그날 종료 시점

로그가 도달하는 한 정확하며, 일 단위입니다. 오늘의 값은 snapshot()->confirmed와 같습니다.

6. 스코프

  • Waitlist::report(): 기본 프로젝트의 모든 목록; ->forList('beta', 'launch')로 좁힘.
  • Waitlist::for('beta')->report(): 하나의 목록.
  • Waitlist::project('acme')->report(): 하나의 프로젝트; Waitlist::allProjects()->report(): 모두.
  • ->forPurpose('newsletter'): 선택적 목적의 승인 및 철회만; 가입, 확인, 탈퇴는 목적을 가지지 않으며 제외됨.
  • since()나 between()이 없으면 저장된 모든 데이터.

규칙, 참조 및 템플릿

  • 하루는 항상 app.timezone에서 종료됩니다: 각 행은 기록될 때 해당 일(occurred_on)을 저장하고, 보고서는 이를 기준으로 그룹화하고 기간을 해당 시간대에서 해결합니다. 삭제는 정확한 시간을 지우므로, 첫 가입 전에 app.timezone을 설정하세요; 나중에 변경해도 기존 행의 날짜는 바뀌지 않고 이후 행만 변경됩니다. UTC의 경우 베를린 여름 23:30의 가입은 다음 UTC일에 속합니다: 정의된 경계이며, 오산이 아닙니다.
  • 보고서는 하나의 그룹화된 쿼리입니다; 대시보드가 자주 폴링하는 경우 애플리케이션에서 캐싱하세요.
  • 남은 로그는 최소화되며 익명이 아닙니다: 보고서가 필요한 사람들을 위해 보고서를 유지하세요.
  • 가이드: https://github.com/Taldres/laravel-waitlist/blob/main/docs/reporting.md

예제

  • "관리자에서 지난달 일별 가입 수 표시": 차트 라이브러리용 JSON을 위한 4단계.
  • "매월 말에 확인된 사람은 몇 명이었나요?": 월말별 confirmedOn().
  • "이번 주 베타 목록 전환율": report()->since(7)->totals()->confirmationRate().

안티 패턴

  • 과거 기간에 대해 WaitlistEntry 행을 세는 것; 삭제와 보존 기간이 변경합니다.
  • Waitlist::for($list)->count()를 "명단에 있음"으로 세는 것: 탈퇴한 사람도 포함됩니다; snapshot()->confirmed 또는 active()를 사용하세요.
  • SQL에서 엔진 특화 함수로 날짜를 계산하는 것; 로그는 이미 보고 일을 저장합니다.
  • 목적별 필터링된 보고서에 가입이나 확인이 포함될 것으로 기대하는 것.

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

Taldres/laravel-waitlist

Use this skill when reviewing Laravel package compatibility across composer constraints, PHP versions, Laravel versions, Testbench versions, dependency stability lanes, Windows CI, or matrix-sensitive code and workflow changes.

Taldres/laravel-waitlist

Use this skill when creating or updating the bundled Laravel Boost skill under resources/boost/skills from the package implementation and package documentation. Trigger after public APIs, commands, config, routes, views, publish tags, README content, or examples change.

Taldres/laravel-waitlist

Use this skill when preparing Laravel package releases: CHANGELOG.md updates, generated release notes, GitHub release workflows, version checks, tags, release validation, or release automation changes. Never publish autonomously.

Taldres/laravel-waitlist

Use this skill when adding Laravel package capabilities or wiring them through the service provider: commands, migrations, routes, config merges, views, translations, assets, middleware, publish tags, workbench files, or console-only behavior.

Taldres/laravel-waitlist

Use this skill when writing, editing, fixing, or reviewing package tests with Pest 4/5 and Orchestra Testbench, including TDD, feature tests, unit tests, type coverage, arch tests, workbench behavior, commands, routes, config, migrations, and publishable resources.

Taldres/laravel-waitlist

Integrate taldres/laravel-waitlist in a Laravel application: define purposes, lists and fields, build the signup form, send the confirmation mail from events, add a preference page, and keep consent, retention and encryption intact.

Taldres/laravel-waitlist

Build the pages of a taldres/laravel-waitlist integration: the signup form with the registered wording, and the confirm, unsubscribe and preference pages, either in Laravel controllers (Blade, Livewire, Inertia) or in an SPA or static site over the package's JSON API, including CORS and bot protection.

Taldres/laravel-waitlist

Turn a taldres/laravel-waitlist waitlist into a launch: invite people in batches in signup order, let invited addresses register, announce the launch to everyone who agreed, and erase the list once its purpose is fulfilled.

Taldres/laravel-waitlist

Send the mails of a taldres/laravel-waitlist integration: the double opt-in confirmation, the preference page link, a welcome mail, launch mails and newsletters to the people who agreed, with the right unsubscribe links, one-click headers and a sender per project.

Taldres/laravel-waitlist

Operate a taldres/laravel-waitlist installation: answer access and erasure requests, withdraw a purpose on request, apply retention, erase a list once its purpose is fulfilled, rotate APP_KEY with waitlist:rekey, export a list, and check the setup before going live.

Taldres/laravel-waitlist

Run the waitlists of several products in one Laravel app with taldres/laravel-waitlist projects: define projects, scope facade calls with project(), resolve the project of HTTP signups, send mail per project, handle requests across all projects, or keep projects in a database for a central waitlist API.

Taldres/laravel-waitlist

Keep a newsletter tool such as Brevo, Mailchimp or Mailcoach in step with a taldres/laravel-waitlist waitlist: add confirmed contacts per purpose, remove them on withdrawal and erasure, and carry unsubscribes made at the provider back into the waitlist via a webhook.

Taldres/laravel-waitlist

Write feature tests for an application's taldres/laravel-waitlist integration: get the plain tokens from events, assert the confirmation and other mails, test the signup, confirm and unsubscribe flows in PHP and over the package's HTTP routes, and bypass rate limits and bot checks in tests.

관련 스킬