php artisan optimize -v
INFO Caching framework bootstrap, configuration, and metadata.
config .............................................................................................................................. 72.45ms DONE
events ............................................................................................................................... 5.37ms DONE
routes .............................................................................................................................. 33.37ms FAIL
In AbstractRouteCollection.php line 247:
[LogicException]
Unable to prepare route [/] for serialization. Another route has already been assigned name [home].
Exception trace:
at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Routing\AbstractRouteCollection.php:247
Illuminate\Routing\AbstractRouteCollection->addToSymfonyRoutesCollection() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Routing\AbstractRouteCollection.php:208
Illuminate\Routing\AbstractRouteCollection->toSymfonyRouteCollection() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:246
Illuminate\Routing\RouteCollection->toSymfonyRouteCollection() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Routing\AbstractRouteCollection.php:192
Illuminate\Routing\AbstractRouteCollection->dumper() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Routing\AbstractRouteCollection.php:163
Illuminate\Routing\AbstractRouteCollection->compile() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Console\RouteCacheCommand.php:109
Illuminate\Foundation\Console\RouteCacheCommand->buildRouteCacheFile() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Console\RouteCacheCommand.php:68
Illuminate\Foundation\Console\RouteCacheCommand->handle() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:36
Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\Util.php:41
Illuminate\Container\Util::unwrapIfClosure() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:93
Illuminate\Container\BoundMethod::callBoundMethod() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:35
Illuminate\Container\BoundMethod::call() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\Container.php:662
Illuminate\Container\Container->call() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\Command.php:212
Illuminate\Console\Command->execute() at C:\Projects\sdlogin\vendor\symfony\console\Command\Command.php:279
Symfony\Component\Console\Command\Command->run() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\Command.php:181
Illuminate\Console\Command->run() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\Concerns\CallsCommands.php:67
Illuminate\Console\Command->runCommand() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\Concerns\CallsCommands.php:40
Illuminate\Console\Command->callSilent() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Console\OptimizeCommand.php:37
Illuminate\Foundation\Console\OptimizeCommand->Illuminate\Foundation\Console\{closure}() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\View\Components\Task.php:40
Illuminate\Console\View\Components\Task->render() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\View\Components\Factory.php:58
Illuminate\Console\View\Components\Factory->__call() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Console\OptimizeCommand.php:39
Illuminate\Foundation\Console\OptimizeCommand->Illuminate\Foundation\Console\{closure}() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Collections\Traits\EnumeratesValues.php:236
Illuminate\Support\Collection->each() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Console\OptimizeCommand.php:39
Illuminate\Foundation\Console\OptimizeCommand->handle() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:36
Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\Util.php:41
Illuminate\Container\Util::unwrapIfClosure() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:93
Illuminate\Container\BoundMethod::callBoundMethod() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:35
Illuminate\Container\BoundMethod::call() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\Container.php:662
Illuminate\Container\Container->call() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\Command.php:212
Illuminate\Console\Command->execute() at C:\Projects\sdlogin\vendor\symfony\console\Command\Command.php:279
Symfony\Component\Console\Command\Command->run() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\Command.php:181
Illuminate\Console\Command->run() at C:\Projects\sdlogin\vendor\symfony\console\Application.php:1031
Symfony\Component\Console\Application->doRunCommand() at C:\Projects\sdlogin\vendor\symfony\console\Application.php:318
Symfony\Component\Console\Application->doRun() at C:\Projects\sdlogin\vendor\symfony\console\Application.php:169
Symfony\Component\Console\Application->run() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php:196
Illuminate\Foundation\Console\Kernel->handle() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:1183
Illuminate\Foundation\Application->handleCommand() at C:\Projects\sdlogin\artisan:13
luttt@DESKTOP-UV2VFMV MINGW64 /c/Projects/sdlogin (main)
$ php artisan optimize -v
INFO Caching framework bootstrap, configuration, and metadata.
config .............................................................................................................................. 75.49ms DONE
events ............................................................................................................................... 6.26ms DONE
routes .............................................................................................................................. 34.73ms FAIL
In AbstractRouteCollection.php line 247:
[LogicException]
Unable to prepare route [/] for serialization. Another route has already been assigned name [home].
Exception trace:
at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Routing\AbstractRouteCollection.php:247
Illuminate\Routing\AbstractRouteCollection->addToSymfonyRoutesCollection() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Routing\AbstractRouteCollection.php:208
Illuminate\Routing\AbstractRouteCollection->toSymfonyRouteCollection() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:246
Illuminate\Routing\RouteCollection->toSymfonyRouteCollection() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Routing\AbstractRouteCollection.php:192
Illuminate\Routing\AbstractRouteCollection->dumper() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Routing\AbstractRouteCollection.php:163
Illuminate\Routing\AbstractRouteCollection->compile() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Console\RouteCacheCommand.php:109
Illuminate\Foundation\Console\RouteCacheCommand->buildRouteCacheFile() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Console\RouteCacheCommand.php:68
Illuminate\Foundation\Console\RouteCacheCommand->handle() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:36
Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\Util.php:41
Illuminate\Container\Util::unwrapIfClosure() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:93
Illuminate\Container\BoundMethod::callBoundMethod() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:35
Illuminate\Container\BoundMethod::call() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\Container.php:662
Illuminate\Container\Container->call() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\Command.php:212
Illuminate\Console\Command->execute() at C:\Projects\sdlogin\vendor\symfony\console\Command\Command.php:279
Symfony\Component\Console\Command\Command->run() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\Command.php:181
Illuminate\Console\Command->run() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\Concerns\CallsCommands.php:67
Illuminate\Console\Command->runCommand() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\Concerns\CallsCommands.php:40
Illuminate\Console\Command->callSilent() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Console\OptimizeCommand.php:37
Illuminate\Foundation\Console\OptimizeCommand->Illuminate\Foundation\Console\{closure}() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\View\Components\Task.php:40
Illuminate\Console\View\Components\Task->render() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\View\Components\Factory.php:58
Illuminate\Console\View\Components\Factory->__call() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Console\OptimizeCommand.php:39
Illuminate\Foundation\Console\OptimizeCommand->Illuminate\Foundation\Console\{closure}() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Collections\Traits\EnumeratesValues.php:236
Illuminate\Support\Collection->each() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Console\OptimizeCommand.php:39
Illuminate\Foundation\Console\OptimizeCommand->handle() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:36
Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\Util.php:41
Illuminate\Container\Util::unwrapIfClosure() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:93
Illuminate\Container\BoundMethod::callBoundMethod() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:35
Illuminate\Container\BoundMethod::call() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Container\Container.php:662
Illuminate\Container\Container->call() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\Command.php:212
Illuminate\Console\Command->execute() at C:\Projects\sdlogin\vendor\symfony\console\Command\Command.php:279
Symfony\Component\Console\Command\Command->run() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Console\Command.php:181
Illuminate\Console\Command->run() at C:\Projects\sdlogin\vendor\symfony\console\Application.php:1031
Symfony\Component\Console\Application->doRunCommand() at C:\Projects\sdlogin\vendor\symfony\console\Application.php:318
Symfony\Component\Console\Application->doRun() at C:\Projects\sdlogin\vendor\symfony\console\Application.php:169
Symfony\Component\Console\Application->run() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Console\Kernel.php:196
Illuminate\Foundation\Console\Kernel->handle() at C:\Projects\sdlogin\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:1183
Illuminate\Foundation\Application->handleCommand() at C:\Projects\sdlogin\artisan:13
TODO: