From ac27e668841120f948fc40cce2fb5b6c8af5179e Mon Sep 17 00:00:00 2001 From: a Date: Wed, 20 Jan 2021 11:01:15 +0100 Subject: [PATCH] Fixed issue caused by the new syntax of Process constructor since Laravel 7.0 --- src/commands/CrudboosterInstallationCommand.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/commands/CrudboosterInstallationCommand.php b/src/commands/CrudboosterInstallationCommand.php index 91ec2f535..2e4269d6a 100644 --- a/src/commands/CrudboosterInstallationCommand.php +++ b/src/commands/CrudboosterInstallationCommand.php @@ -49,7 +49,11 @@ public function handle() $this->info('Dumping the autoloaded files and reloading all new files...'); $composer = $this->findComposer(); - $process = new Process($composer.' dumpautoload'); + + $process = (app()->version() >= 7.0) + ? new Process([$composer.' dumpautoload']) + : new Process($composer.' dumpautoload'); + $process->setWorkingDirectory(base_path())->run(); $this->info('Migrating database...');