$this->id, 'user_id' => $this->user_id, 'username' => $this->username, 'description' => $this->description, 'aliases' => AliasResource::collection($this->whenLoaded('aliases')), 'default_recipient' => new RecipientResource($this->whenLoaded('defaultRecipient')), 'active' => $this->active, 'created_at' => $this->created_at->toDateTimeString(), 'updated_at' => $this->updated_at->toDateTimeString(), ]; } }