Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

362 B
Raw Blame
<?php

namespace HiEvents\Resources\Webhook;

use HiEvents\DomainObjects\WebhookDomainObject;

/**
 * @mixin WebhookDomainObject
 */
class WebhookResourceWithSecret extends WebhookResource
{
    public function toArray($request): array
    {
        return array_merge(parent::toArray($request), [
            'secret' => $this->getSecret(),
        ]);
    }
}