Skip to content

Commit f3a9b0b

Browse files
Merge pull request #724 from tighten/fix-event-listener
Fix event listener propagation
2 parents 3600edd + 2695c2a commit f3a9b0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ZiggyServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ public function boot()
1717
$this->app->afterResolving('blade.compiler', fn (BladeCompiler $blade) => $this->registerDirective($blade));
1818
}
1919

20-
Event::listen(RequestReceived::class, fn () => BladeRouteGenerator::$generated = false);
20+
Event::listen(RequestReceived::class, function () {
21+
BladeRouteGenerator::$generated = false;
22+
});
2123

2224
if ($this->app->runningInConsole()) {
2325
$this->commands(CommandRouteGenerator::class);

0 commit comments

Comments
 (0)