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 f54179a commit 5f73b5fCopy full SHA for 5f73b5f
src/Providers/LaravelCaffeineService.php
@@ -35,7 +35,7 @@ private function middlewareGroupExists(string $group) : bool
35
$routes = collect(app('router')->getRoutes()->getRoutes());
36
37
return $routes->reduce(function ($carry, $route) use ($group) {
38
- $carry = $carry ?? false;
+ $carry = ($carry ?? false) ?: false;
39
$actions = (array) $route->getAction();
40
41
if (array_key_exists('middleware', $actions)
@@ -45,6 +45,6 @@ private function middlewareGroupExists(string $group) : bool
45
}
46
47
return $carry;
48
- });
+ }) ?? false;
49
50
0 commit comments