finish event with log user participation

This commit is contained in:
2020-08-20 14:47:44 +02:00
parent 98fc72d6dc
commit 0a819fbadf
5 changed files with 134 additions and 5 deletions

View File

@@ -30,6 +30,9 @@ class User extends JsonResource
'is_staff' => $this->whenPivotLoaded('event_guest', function () {
return (int) $this->pivot->is_staff;
}),
'validated_at' => $this->whenPivotLoaded('event_guest', function () {
return (int) $this->pivot->validated_at;
}),
],
],
'links' => [