From aa83cd26e4bbbf36f287b2d170f7944c2fdb407b Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 11 Oct 2023 10:47:52 +0900 Subject: [PATCH] fix: named routes don't work with spark --- system/CLI/Console.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/CLI/Console.php b/system/CLI/Console.php index 16e5df831efc..adcf9aaeca8b 100644 --- a/system/CLI/Console.php +++ b/system/CLI/Console.php @@ -35,6 +35,8 @@ public function run() // Create CLIRequest $appConfig = config(App::class); Services::createRequest($appConfig, true); + // Load Routes + Services::routes()->loadRoutes(); $runner = Services::commands(); $params = array_merge(CLI::getSegments(), CLI::getOptions());