OK, this turned out to be more of a beast than I expected. Because of the way Laravel has special handling for the EventServiceProvider, a lot of the event discovery stuff needed to be rewritten. This takes into account event auto-discovery and event caching (which each operate slightly differently). It also builds on @Wulfheart's work in #82, allowing for explicitly enabling or disabling auto-discovery via a config option.
OK, this turned out to be more of a beast than I expected. Because of the way Laravel has special handling for the
EventServiceProvider
, a lot of the event discovery stuff needed to be rewritten. This takes into account event auto-discovery and event caching (which each operate slightly differently). It also builds on @Wulfheart's work in #82, allowing for explicitly enabling or disabling auto-discovery via a config option.