Create a new event listener class


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


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