We inform Laravel that, when the event Illuminate\Auth\Events\Login is fired, The example here above adds a listener for the login event and the code is .