Skip to content

Commit a719891

Browse files
committed
Update GenerateCommand.php
1 parent d09a358 commit a719891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GenerateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function handle()
5555
$this->forcedScheme = (new ReflectionProperty($this->url, 'forceScheme'))->getValue($this->url);
5656
$this->forcedRoot = (new ReflectionProperty($this->url, 'forcedRoot'))->getValue($this->url);
5757

58-
$globalUrlDefaults = collect(URL::getDefaultParameters())->filter(fn ($v) => is_scalar($v) || is_null($v));
58+
$globalUrlDefaults = collect(URL::getDefaultParameters())->map(fn ($v) => is_scalar($v) || is_null($v) ? $v : '');
5959

6060
$routes = collect($this->router->getRoutes())->map(function (BaseRoute $route) use ($globalUrlDefaults) {
6161
$defaults = collect($this->router->gatherRouteMiddleware($route))->map(function ($middleware) {

0 commit comments

Comments
 (0)