From 34d75c3f4660e4c7fb5c8db24db19f49e205e949 Mon Sep 17 00:00:00 2001 From: wuyanwen Date: Sat, 14 Dec 2019 18:21:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/event/LoadModuleRoutes.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/extend/catcher/event/LoadModuleRoutes.php b/extend/catcher/event/LoadModuleRoutes.php index 864ab7b..78a50de 100644 --- a/extend/catcher/event/LoadModuleRoutes.php +++ b/extend/catcher/event/LoadModuleRoutes.php @@ -19,7 +19,19 @@ class LoadModuleRoutes $router = app(Route::class); $router->group(function () use ($router) { - include CatchAdmin::getRoutes(); + foreach ($this->getRoutes() as $route) { + include $route; + } }); } + + protected function getRoutes() + { + return [ + CatchAdmin::directory() . 'login' . DIRECTORY_SEPARATOR . 'route.php', + CatchAdmin::getRoutes(), + ]; + } + + }