jonaspardon/laravel-event-visualizer
Laravel Event Visualizer maps your app's events, listeners, and dispatch chains into an interactive graph, helping you understand event-driven flow, spot missing or duplicate listeners, and debug complex Laravel event architecture quickly.
composer require jonaspardon/laravel-event-visualizer --dev (dev dependency is recommended — this is a diagnostic tool, not production runtime code).php artisan vendor:publish --tag="event-visualizer-config", verify the exact tag from the package README — tags are not always stable pre-1.0).php artisan event:visualize or similar — check php artisan list after installation) to dump your event → listener → dispatched-event graph. This gives immediate value on legacy codebases where nobody remembers what fires when.local/APP_DEBUG environments). Confirm your EventServiceProvider (or Laravel 11's auto-discovered listeners) is actually being scanned — an empty graph almost always means discovery isn't picking up your listeners, not that the package is broken.app/Listeners, so make sure that directory convention is honored or the visualizer will show fewer nodes than you expect.Log::info calls everywhere. This is the highest-leverage use: complex domain events with subscribers that dispatch further events.EventServiceProvider or migrating listeners to Laravel 11's auto-discovery. You get a before/after diff for free.require-dev dependency and only invoke it locally. Don't wire it into production deploy steps."^0.4") and read the changelog before bumping.app/Listeners? Are manual registrations in a service provider you've customized? Are you using event subscribers (which discovery sometimes misses)?EventServiceProvider, the visualizer may show a mix of discovered and manually registered listeners — good for debugging, but be aware the two registration paths are distinct.How can I help you explore Laravel packages today?