participants shouldn't show ids either
This commit is contained in:
parent
77c3e34d5b
commit
4ce510402c
@ -14,9 +14,12 @@ class DynamicResource extends BaseResource
|
|||||||
public function toArray(Request $request): array
|
public function toArray(Request $request): array
|
||||||
{
|
{
|
||||||
$result = parent::toArray($request);
|
$result = parent::toArray($request);
|
||||||
if($this->ledgers){
|
if ($this->ledgers) {
|
||||||
$result['ledgers'] = LedgerResource::collection($this->ledgers);
|
$result['ledgers'] = LedgerResource::collection($this->ledgers);
|
||||||
}
|
}
|
||||||
|
if ($this->participants) {
|
||||||
|
$result['participants'] = ParticipantResource::collection($this->participants);
|
||||||
|
}
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
18
app/Http/Resources/ParticipantResource.php
Normal file
18
app/Http/Resources/ParticipantResource.php
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -96,7 +96,7 @@
|
|||||||
|
|
||||||
.c-chat__message-author {
|
.c-chat__message-author {
|
||||||
@apply font-semibold;
|
@apply font-semibold;
|
||||||
color: var(--foreground);
|
/*color: var(--foreground);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.c-chat__message-time {
|
.c-chat__message-time {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user