Mail driver settings for Laravel and Livewire.
composer require nuewire/mail
php artisan optimize:clear
<livewire:nuewire-mail />
With nuewire/platform 2, the page appears under Settings → Configuration → Email at /admin/settings/email.
Settings are encrypted at:
storage/app/private/.nuewire/emails.json
The selected mailer becomes Laravel's default when the option is enabled.
Mail::to('[email protected]')->send(new InvoiceReady());
Use the package mailer explicitly:
Mail::mailer('nuewire')->to('[email protected]')->send(new InvoiceReady());
The initial driver is log.
The component requires authentication by default.
NUEWIRE_MAIL_GATE=manage-email-settings
php artisan vendor:publish --tag=nuewire-mail-config
php artisan vendor:publish --tag=nuewire-mail-views
php artisan vendor:publish --tag=nuewire-mail-translations
Config path:
config/nuewire/mail.php
Restart queue or Octane workers after changing drivers.
How can I help you explore Laravel packages today?