resend/resend-laravel
Resend for Laravel
Provides Resend integration for Laravel and Symfony Mailer.
Requires PHP 8.1+
Examples
Send an email with:
Getting started
First install Resend for Laravel via the Composer package manager:
composer require resend/resend-laravel
Next, you should configure your Resend API key in your application's .env file:
RESEND_API_KEY=re_123456789
Finally, you may use the Resend facade to access the Resend API:
use Resend\Laravel\Facades\Resend;
Resend::emails()->send([
'from' => 'onboarding@resend.dev',
'to' => 'user@gmail.com',
'subject' => 'hello world',
'text' => 'it works!',
]);
Using Resend's Laravel mailer
Resend for Laravel comes bundled with a Laravel mailer to make it easier to send emails. To start using the Resend mail transport, first create a new mailer definition within your application's config/mail.php configuration file:
'resend' => [
'transport' => 'resend',
],
Note The Resend mailer will use the
RESEND_API_KEYin your application's.envfile.
Finally, update the MAIL_MAILER environment variable to use resend:
MAIL_MAILER=resend
Configuration
You can optionally publish the configuration files to customize the package settings:
php artisan vendor:publish --tag=resend-config
Related Packages
Anthropic PHP for Laravel is a supercharged PHP API client that allows you to in...
Supercharge your Laravel or Symfony app with Microsoft Azure Communication Servi...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.6.0 | ^8.1 | ^10.0| | MIT | |
| v1.5.0 | ^8.1 | ^10.0| | MIT | |
| v1.4.0 | ^8.1 | ^10.0| | MIT | |
| v1.3.2 | ^8.1 | ^10.0| | MIT | |
| v1.3.1 | ^8.1 | ^10.0| | MIT | |
| v1.3.0 | ^8.1 | ^10.0| | MIT | |
| v1.2.0 | ^8.1 | ^10.0| | MIT | |
| v1.1.0 | ^8.1 | ^10.0| | MIT | |
| v1.0.0 | ^8.1 | ^10.0| | MIT | |
| v0.23.0 | ^8.1 | ^10.0| | MIT | |
| v0.22.0 | ^8.1 | ^10.0| | MIT | |
| v0.21.0 | ^8.1 | ^10.0| | MIT | |
| v0.20.0 | ^8.1 | ^10.0| | MIT | |
| v0.19.0 | ^8.1 | ^10.0| | MIT | |
| v0.18.0 | ^8.1 | ^10.0| | MIT | |
| v0.17.0 | ^8.1 | ^10.0| | MIT | |
| v0.16.1 | ^8.1 | ^10.0| | MIT | |
| v0.16.0 | ^8.1 | ^10.0| | MIT | |
| v0.15.0 | ^8.1 | ^10.0| | MIT | |
| v0.14.0 | ^8.1 | ^10.0| | MIT | |
| v0.13.0 | ^8.1 | ^10.0| | MIT | |
| v0.12.0 | ^8.1 | ^10.0| | MIT | |
| v0.11.0 | ^8.1 | ^10.0| | MIT | |
| v0.10.0 | ^8.1 | ^9.21| | MIT | |
| v0.9.0 | ^8.1 | ^9.21| | MIT | |
| v0.8.0 | ^8.1 | ^9.21| | MIT | |
| v0.7.1 | ^8.1 | ^9.21| | MIT | |
| v0.7.0 | ^8.1 | ^9.21| | MIT | |
| v0.6.0 | ^8.1 | ^9.21| | MIT | |
| v0.5.0 | ^8.1 | ^9.21| | MIT |
Showing the latest 30 of 40. See every release on Packagist