participants shouldn't show ids either
Some checks failed
linter / quality (push) Failing after 1m4s
tests / ci (8.3) (push) Failing after 49s
tests / ci (8.4) (push) Failing after 1m5s
tests / ci (8.5) (push) Failing after 1m5s

This commit is contained in:
Daan Meijer 2026-06-22 15:32:59 +02:00
parent 77c3e34d5b
commit 4ce510402c
3 changed files with 23 additions and 2 deletions

View File

@ -14,9 +14,12 @@ class DynamicResource extends BaseResource
public function toArray(Request $request): array
{
$result = parent::toArray($request);
if($this->ledgers){
if ($this->ledgers) {
$result['ledgers'] = LedgerResource::collection($this->ledgers);
}
if ($this->participants) {
$result['participants'] = ParticipantResource::collection($this->participants);
}
return $result;
}
}

View File

@ -0,0 +1,18 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
class ParticipantResource extends BaseResource
{
/**
* Transform the resource into an array.
*
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return parent::toArray($request);
}
}

View File

@ -96,7 +96,7 @@
.c-chat__message-author {
@apply font-semibold;
color: var(--foreground);
/*color: var(--foreground);*/
}
.c-chat__message-time {