honeybadger-io/honeybadger-laravel

View on GitHub
src/Events/MailSending.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Honeybadger\HoneybadgerLaravel\Events;

use Illuminate\Mail\Events\MessageSending;

class MailSending extends MailEvent
{
    public string $handles = MessageSending::class;

    /**
     * @param MessageSending $event
     * @return EventPayload
     */
    public function getEventPayload($event): EventPayload
    {
        $metadata = parent::getMetadata($event);

        return new EventPayload(
            'mail',
            'mail.sending',
            'Sending mail',
            $metadata,
        );
    }
}