diff --git a/src/EventSourcingServiceProvider.php b/src/EventSourcingServiceProvider.php index 6f62fcb6..0137d290 100644 --- a/src/EventSourcingServiceProvider.php +++ b/src/EventSourcingServiceProvider.php @@ -114,7 +114,7 @@ private function discoverEventHandlers() (new DiscoverEventHandlers()) ->within(config('event-sourcing.auto_discover_projectors_and_reactors')) - ->useBasePath(config('event-sourcing.base_path', base_path())) + ->useBasePath(config('event-sourcing.auto_discover_base_path', base_path())) ->ignoringFiles(Composer::getAutoloadedFiles(base_path('composer.json'))) ->addToProjectionist($projectionist); }