One Mailable class per email variation
Pro plan payment failed in German? That is a separate Mailable or a deeply branching envelope() method.
Laravel integration
POST a domain event from your Laravel app using the built-in HTTP client. else.events routes it, renders the template and delivers through your provider.
Pro plan payment failed in German? That is a separate Mailable or a deeply branching envelope() method.
Every copy change to a Blade email template means a commit, a PR and a deploy — even for a typo.
Mailables dispatched from jobs, controllers and listeners are hard to track. There is no single log of what was sent when and why.
Switching from Mailgun to Postmark means reconfiguring your mailer and potentially touching every Mailable that uses transport-specific features.
Use Laravel's built-in Http facade. One POST replaces every Mail::to()->send() call.
Edit subject lines and copy in the else.events dashboard. No Blade changes, no deployment.
else.events reads your payload and picks the right template. Your Laravel app does not need to know which template to use.
See every event, matched rule and email status — queryable by event type, user or date.
// Laravel — Http facade
// app/Services/EmailService.php
class EmailService
{
public function sendEvent(string $type, array $user, array $data): void
{
Http::withToken(config('services.else_events.api_key'))
->post('https://app.else.events/api/events', [
'type' => $type,
'user' => $user,
'data' => $data,
]);
}
}
// Usage in a job or listener
$emailService->sendEvent(
'invoice.payment_failed',
['email' => $invoice->user->email, 'name' => $invoice->user->name],
['plan' => $invoice->plan, 'amount' => $invoice->amount,
'currency' => 'EUR', 'update_payment_url' => route('billing.update')]
);Add ELSE_EVENTS_API_KEY to your .env and config/services.php. One service class replaces every Mailable dispatch for product emails.
One HTTP call per event. Templates managed outside your repository. No Blade template deployments.