Skip to content

Commit 02d51b7

Browse files
committed
include the command file before calling it
1 parent bacaf12 commit 02d51b7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/app/Console/Commands/RequireDevTools.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,14 @@ public function handle()
145145
// Finish
146146
$this->progressBar->finish();
147147
$this->info(' DevTools is now required.');
148-
148+
149149
// DevTools inside installer
150150
$this->info('');
151151
$this->info(' Now running the DevTools installation command.');
152152

153-
app()->registerDeferredProvider(\Backpack\DevTools\DevToolsServiceProvider::class);
154-
155-
$this->call('backpack:devtools:install');
153+
// manually include the command in the run-time
154+
include(base_path('vendor/backpack/devtools/src/Console/Commands/InstallDevTools.php'));
155+
156+
$this->call(\Backpack\DevTools\Console\Commands\InstallDevTools::class);
156157
}
157158
}

0 commit comments

Comments
 (0)