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 aec8ad4 commit fd07e20Copy full SHA for fd07e20
src/Illuminate/Foundation/Support/Providers/EventServiceProvider.php
@@ -146,6 +146,9 @@ public function shouldDiscoverEvents()
146
public function discoverEvents()
147
{
148
return (new Collection($this->discoverEventsWithin()))
149
+ ->flatMap(function ($directory) {
150
+ return glob($directory, GLOB_ONLYDIR);
151
+ })
152
->reject(function ($directory) {
153
return ! is_dir($directory);
154
})
0 commit comments