#591 - server-ssh-keys

This commit is contained in:
Saeed Vaziry
2025-05-29 21:20:33 +02:00
parent 8b6f65db97
commit 0fce4dba9c
22 changed files with 438 additions and 195 deletions

View File

@ -16,7 +16,7 @@ public function toArray(Request $request): array
{
return [
'id' => $this->id,
'user' => $this->user_id ? new UserResource($this->user) : null,
'user' => new UserResource($this->whenLoaded('user')),
'name' => $this->name,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,