make:listener

Create a new event listener class

Options

  • event - The event class being listened for Optional
  • force - Create the class even if the listener already exists Optional
  • queued - Indicates the event listener should be queued Optional
  • test - Generate an accompanying Test test for the Listener Optional
  • pest - Generate an accompanying Pest test for the Listener Optional
  • phpunit - Generate an accompanying PHPUnit test for the Listener Optional

Arguments

  • name - The name of the listener Required
php artisan make:listener [-e|--event [EVENT]] [-f|--force] [--queued] [--test] [--pest] [--phpunit] [--] <name>