1. Home
  2. Artisan
  3. Make listener

Creates a new Listener class. The --event flag, or -e in short, will include the event to listen for.

#artisan#php#make#listener
php artisan make:event SendItemAddedNotification --event=ItemAdded
copy
Full Artisan cheatsheet