# Define the event using Artisan command
php artisan make:event MyEvent

# Define the listener associated with the event using Artisan command
php artisan make:listener MyListener --event=MyEvent