7 Mar 2017 Registering events. Edit the EventServiceProvider included in your Laravel application to register the event listener. Use the artisan event:generate command to generate the LogSuccessfulLogin listener. $ php artisan event:generate Events and listeners generated successfully!.