Event identifiers for anonymizations

This commit is contained in:
2026-03-22 00:14:00 +01:00
parent 405591d6dd
commit 37039f082c
6 changed files with 12 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ use App\Models\Event;
use App\Models\Tenant;
use App\RelationModels\EventEatingHabits;
use App\RelationModels\EventLocalGroups;
use Illuminate\Support\Str;
class CreateEventCommand {
private CreateEventRequest $request;
@@ -27,6 +28,7 @@ class CreateEventCommand {
$event = Event::create([
'tenant' => app('tenant')->slug,
'name' => $this->request->name,
'identifier' => Str::random(10),
'location' => $this->request->location,
'postal_code' => $this->request->postalCode,
'email' => $this->request->email,