Community程式設計與開發github.com

Taldres/laravel-waitlist

管理 taldres/laravel-waitlist 套件的日常資料保護工作:處理存取與刪除請求、依要求撤回目的、設定保留期限、目的達成後清除名單、使用 waitlist:rekey 輪換 APP_KEY、匯出名單,以及上線前檢查設定。

laravel-waitlist 是什麼?

這項技能專門用於管理 Laravel Waitlist 套件(taldres/laravel-waitlist)的日常隱私與資料保護任務。它能讓開發者或維運人員透過該套件提供的 API 和 Artisan 命令,處理來自名單上人員的存取請求、刪除請求、撤回同意,以及設定資料保留期限。此技能明確支援跨專案操作,確保當請求涉及同一人在多個專案中的資料時,能一次性地在所有相關專案中執行,並清楚說明哪些操作不屬於套件範圍(例如備份、佇列、日誌、提供者副本等需另行處理)。此外,它涵蓋了 APP_KEY 輪換的正確流程(使用 APP_PREVIOUS_KEYS 與 waitlist:rekey)、匯出名單為 CSV、產生處理紀錄紀錄(waitlist:privacy),以及提供詳細的上線前檢查清單,確保雙重驗證、排程器、電子郵件取消訂閱連結等設定無誤。最後,它明確指出反模式(如直接 SQL 刪除)與操作責任歸屬,提醒使用者該套件不提供法律建議或合規保證。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Taldres/laravel-waitlist/tree/HEAD/resources/boost/skills/laravel-waitlist-privacy-operations

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Laravel Waitlist:隱私操作

使用此技能處理 taldres/laravel-waitlist 的日常資料保護任務:來自名單上人員的請求、保留、金鑰輪換、匯出以及上線前檢查。

主要目標

  • 透過套件自身的 API 與命令,執行每個請求,並涵蓋該請求所涉及的所有專案,同時說明哪些部分保留在套件外部。

工作流程

存取請求

php artisan waitlist:show [email protected] --pretty   # 所有專案;--json 取得機器可讀的副本
Waitlist::allProjects()->personalData('[email protected]'); // Collection<PersonalData>

刪除請求

php artisan waitlist:forget [email protected]          # 所有專案
Waitlist::allProjects()->forget('[email protected]');  // 已刪除的條目數

刪除動作會清除該地址、其循環和同意記錄,並清空其日誌列中的識別欄位;它會為每個條目觸發 EntryForgotten 事件,監聽者可藉此刪除提供者端的副本。備份、佇列、日誌、匯出檔案及提供者副本需要另行處理。

透過郵件送達的撤回請求

Waitlist::for('beta')->withdraw('[email protected]', 'newsletter'); // 選擇性目的:該專案的所有名單
Waitlist::for('beta')->unsubscribe('[email protected]');            // 離開此名單

目的達成後清除名單

php artisan waitlist:forget --list=beta --all          # 會先詢問;--force 可在非終端環境中略過確認
Waitlist::for('beta')->forgetAll();

保留期限

waitlist:prune 會依照套件的排程設定執行(waitlist.retention.schedule,15 3 * * *;設為 null 則由您自行排程;如果給出一個永遠不會執行的 cron 表達式則會被拒絕);Laravel 的排程器必須在運作(每分鐘執行 php artisan schedule:run)。保留期間在 waitlist.retention 中設定:pending_days(30 天)、unsubscribed_days(1095 天)、request_metadata_days(30 天);設為 null 則保留資料,若期間設定為回溯至 1970 年之前(例如 36500 天視為「永久」)則會被拒絕。waitlist:prune 會套用所有可讀取的期間,然後回報無法讀取的期間並中斷執行:請監控日誌和退出代碼。這些是技術預設值,並非法律建議。活躍的已確認條目及剩餘的報告列不會自動過期。

輪換 APP_KEY

  1. 將舊金鑰放入 APP_PREVIOUS_KEYS,設定新的 APP_KEY,然後佈署。
  2. 執行 php artisan waitlist:rekey
  3. 當不再有任何佇列工作或備份需要舊金鑰後,即可移除它。

沒有舊金鑰,地址將無法讀取也無法透過電子郵件搜尋,且每個取消訂閱的令牌都會在下次使用時被取代,因此之前發送的連結將從那時起失效。

匯出

php artisan waitlist:export beta --status=confirmed --path=storage/app/beta.csv

欄位來自 waitlist.export.columns,並限制為 CsvExporter::EXPORTABLE(不含令牌)。檔案中包含明文的地址;處理完畢後請刪除它。

處理紀錄

php artisan waitlist:privacy [--project=]

它會描述已設定的套件儲存方式、目的、每個名單的中繼資料欄位、保留期限以及為套件事件註冊的監聽器。這是輸入資料,並非完整的處理紀錄:它不會稽核基礎設施,也不會找出所有資料接收者。

上線前檢查

  • APP_KEY 已備份(與資料庫分開存放)
  • 啟用雙重確認;除非必要,否則關閉 IP 與使用者代理記錄
  • 每個專案和名單的欄位(->fields())越少越好;有疑問時則不要設定任何欄位
  • 排程器正在運作;已選擇並證明保留期間的合理性
  • 設定檔檢查:.env 中沒有空白的 WAITLIST_*= 行(空值會被拒絕;請刪除該行以使用預設值);套件更新後重新執行 php artisan config:cache(路由設定變更後也要執行 route:cache);日誌中沒有 InvalidConfigurationException
  • 註冊表單顯示 Waitlist::purposes() 或 GET /waitlist/purposes;選擇性目的為未勾選狀態
  • 確認監聽器記錄了 Waitlist::confirmationMailed()
  • 每封郵件都包含按目的提供的取消訂閱連結和單鍵標頭
  • ManageLinkRequested 僅郵寄給該地址本人
  • 佇列監聽器實作了 ShouldBeEncrypted;EntryForgotten、EntryUnsubscribed 和 ConsentWithdrawn 能夠送達每個提供者
  • 若路由啟用,則已設定機器人保護和信任的代理伺服器

規則、參考資料與範本

範例

  • 「使用者要求我們刪除他們的資料」:驗證請求後,執行 php artisan waitlist:forget <email>,並檢查提供者和匯出檔案。
  • 「我們上線了,Beta 名單已達成其目的」:執行 waitlist:forget --list=beta --all。
  • 「我們輪換了 APP_KEY,然後查詢失敗了」:將舊金鑰放回 APP_PREVIOUS_KEYS,然後執行 waitlist:rekey。

反模式

  • 使用 SQL 或 WaitlistEntry::query()->delete() 直接刪除資料列;刪除操作必須透過套件進行,這樣才能清理日誌並觸發 EntryForgotten 事件。
  • 使用 where('email', ...) 搜尋:地址是加密的;請使用 forEmail() 或 Facade。
  • 對於在多個專案中的人員,僅使用 Waitlist::forget()(僅限預設專案)進行刪除。
  • 在沒有設定 APP_PREVIOUS_KEYS 的情況下輪換 APP_KEY。
  • 將 waitlist:privacy 的輸出呈現為完整的第 30 條處理紀錄。

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

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

Build waitlist statistics with taldres/laravel-waitlist: signups and confirmations per day for charts, totals and confirmation rates for a period, the confirmed count on any past day, and how many people are on a list right now, for dashboards, admin pages and API endpoints.

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.

相關技能