From 366c50ec161f296df99961ecc71229b5b097ad49 Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Fri, 1 Sep 2017 15:30:19 +0200 Subject: [PATCH] load deferred providers first --- src/Illuminate/Foundation/Console/Kernel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Foundation/Console/Kernel.php b/src/Illuminate/Foundation/Console/Kernel.php index c4aa71d475f5..c51eccd5b464 100644 --- a/src/Illuminate/Foundation/Console/Kernel.php +++ b/src/Illuminate/Foundation/Console/Kernel.php @@ -293,13 +293,13 @@ public function bootstrap() $this->app->bootstrapWith($this->bootstrappers()); } + $this->app->loadDeferredProviders(); + if (! $this->commandsLoaded) { $this->commands(); $this->commandsLoaded = true; } - - $this->app->loadDeferredProviders(); } /**