$this->id, 'user_id' => $this->user_id, 'aliasable_id' => $this->aliasable_id, 'aliasable_type' => $this->aliasable_type, 'local_part' => $this->local_part, 'extension' => $this->extension, 'domain' => $this->domain, 'email' => $this->email, 'active' => $this->active, 'description' => $this->description, 'emails_forwarded' => $this->emails_forwarded, 'emails_blocked' => $this->emails_blocked, 'emails_replied' => $this->emails_replied, 'recipients' => RecipientResource::collection($this->whenLoaded('recipients')), 'created_at' => $this->created_at->toDateTimeString(), 'updated_at' => $this->updated_at->toDateTimeString(), ]; } }