From a07d38a6b07cde6e8f88d6a949e5b38a08a43625 Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Thu, 13 Oct 2022 15:04:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=B3=E9=97=AD=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E6=97=A0=E6=B3=95=E6=89=93=E5=BC=80=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- beike/Shop/Providers/PluginServiceProvider.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/beike/Shop/Providers/PluginServiceProvider.php b/beike/Shop/Providers/PluginServiceProvider.php index 1abf8b12..59b10347 100644 --- a/beike/Shop/Providers/PluginServiceProvider.php +++ b/beike/Shop/Providers/PluginServiceProvider.php @@ -46,17 +46,16 @@ class PluginServiceProvider extends ServiceProvider $this->pluginBasePath = base_path('plugins'); foreach ($plugins as $plugin) { - $pluginCode = $plugin->getDirname(); $this->bootPlugin($plugin); - $this->loadMigrations($pluginCode); - $this->loadRoutes($pluginCode); - $this->loadTranslations($pluginCode); } $allPlugins = $manager->getPlugins(); foreach ($allPlugins as $plugin) { $pluginCode = $plugin->getDirname(); + $this->loadMigrations($pluginCode); + $this->loadRoutes($pluginCode); $this->loadViews($pluginCode); + $this->loadTranslations($pluginCode); } }