group(function () use ($router) { foreach ($this->getRoutes() as $route) { include $route; } }); } protected function getRoutes() { return [ CatchAdmin::directory() . 'login' . DIRECTORY_SEPARATOR . 'route.php', CatchAdmin::getRoutes(), ]; } }