call('config:cache'); // 调用 Laravel 的 config:cache 命令 // 优化路由并缓存路由信息 $this->call('route:cache'); // 调用 Laravel 的 route:cache 命令 } }