Skip to content

resend/resend-laravel-example

Repository files navigation

Resend with Laravel

This example shows how to use Resend with Laravel.

Prerequisites

To get the most out of this guide, you’ll need to:

Instructions

  1. Install the composer and npm dependencies:
composer install && npm install
  1. Build the Javascript and CSS files required for the frontend:
npm run build
  1. Create a .env file used to configure your application:
php -r "file_exists('.env') || copy('.env.example', '.env');"
  1. Generate an application key:
php artisan key:generate --ansi
  1. Configure your .env file, with your database credentials and Resend API key.

  2. Migrate the database:

php artisan migrate
  1. You're ready to use the example project, run:
php artisan serve

Using the example app

To get the full experience of how easy it is to send emails with Resend, follow these simple steps:

  1. Create two user accounts with valid email addresses.
  2. Once you have two user accounts, login into any one of them and navigate to the "Chirps" page.
  3. Write your very first Chirp.
  4. Once you have submitted your first Chirp, the application will use Resend to email all users of your new Chirp.
  5. If you used a valid email address you should receive an email in your inbox or you can check your Resend dashboard to view the sent email.

About

This example shows how to use Resend with Laravel

Resources

Stars

Watchers

Forks

Languages