From 0232ef24163cd6684ab1d179d614c95bd25e4fc1 Mon Sep 17 00:00:00 2001 From: Crypta-Eve Date: Wed, 10 Feb 2021 09:07:28 +1100 Subject: [PATCH] feat: add user_id to character sheet return --- src/Http/Resources/CharacterSheetResource.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Http/Resources/CharacterSheetResource.php b/src/Http/Resources/CharacterSheetResource.php index 5ff0657..557a16f 100644 --- a/src/Http/Resources/CharacterSheetResource.php +++ b/src/Http/Resources/CharacterSheetResource.php @@ -50,7 +50,8 @@ * @OA\Property(property="skillpoints", type="object", * @OA\Property(property="total_sp", type="number", description="The total skill points owned by the character"), * @OA\Property(property="unallocated_sp", type="number", description="The total skill points not allocated for this character") - * ) + * ), + * @OA\Property(property="user_id", type="integer", description="Seat user identifier") * ) */ class CharacterSheetResource extends Resource @@ -81,6 +82,7 @@ public function toArray($request) 'total_sp' => $this->skillpoints->total_sp, 'unallocated_sp' => $this->skillpoints->unallocated_sp, ], + 'user_id' => $this->user->id, ]; $definition = parent::toArray($request);