We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0798479 commit d9a33b1Copy full SHA for d9a33b1
src/Illuminate/Foundation/Support/Providers/EventServiceProvider.php
@@ -119,7 +119,7 @@ public function discoverEvents()
119
->reduce(function ($discovered, $directory) {
120
return array_merge_recursive(
121
$discovered,
122
- DiscoverEvents::within($directory, base_path())
+ DiscoverEvents::within($directory, $this->eventDiscoveryBasePath())
123
);
124
}, []);
125
}
@@ -135,4 +135,14 @@ protected function discoverEventsWithin()
135
$this->app->path('Listeners'),
136
];
137
138
+
139
+ /**
140
+ * Get the base path to be used during event discovery.
141
+ *
142
+ * @return string
143
+ */
144
+ protected function eventDiscoveryBasePath()
145
+ {
146
+ return base_path();
147
+ }
148
0 commit comments