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

make:notification

Create a new notification class

Options

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

Arguments

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