diff --git a/src/EventSourcingServiceProvider.php b/src/EventSourcingServiceProvider.php index 112c3da1..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(base_path()) + ->useBasePath(config('event-sourcing.auto_discover_base_path', base_path())) ->ignoringFiles(Composer::getAutoloadedFiles(base_path('composer.json'))) ->addToProjectionist($projectionist); }