The Laravel Artisan Cheatsheet now has an API. Learn more.

make:mail

Create a new email class

Options

  • force - Create the class even if the mailable already exists Optional
  • markdown - Create a new Markdown template for the mailable Optional
  • test - Generate an accompanying PHPUnit test for the Mail Optional
  • pest - Generate an accompanying Pest test for the Mail Optional

Arguments

  • name - The name of the class Required
php artisan make:mail [-f|--force] [-m|--markdown [MARKDOWN]] [--test] [--pest] [--] <name>