Add RSVP functionality for Meetup Events

- 🏷️ Introduce `RsvpStatus` enum for managing attendance states (`attending`, `maybe`, `none`).
- ✏️ Add `MeetupEventController` methods for RSVP actions (`rsvpStatus`, `rsvp`) and payload handling.
-  Implement RSVP helpers in `MeetupEvent` model for user-specific attendance management.
- 🌐 Register RSVP routes for showing and updating attendance in the API.
- 🧪 Add feature tests for RSVP actions, covering validation, idempotency, and correct list handling.
This commit is contained in:
HolgerHatGarKeineNode
2026-06-15 22:10:10 +02:00
parent e55967e9ac
commit 0a1d177fc4
6 changed files with 249 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
namespace App\Enums;
/**
* RSVP-Status eines Nutzers für einen Meetup-Termin. `None` bildet den Zustand
* ab, dass der Nutzer in keiner der beiden Teilnehmer-Listen steht (= abgesagt
* bzw. nie zugesagt) und dient zugleich als Eingabewert zum Austragen.
*/
enum RsvpStatus: string
{
case Attending = 'attending';
case Maybe = 'maybe';
case None = 'none';
}