Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Fixed issue caused by the new syntax of Process constructor since Lar…
Browse files Browse the repository at this point in the history
…avel 7.0
  • Loading branch information
a committed Jan 20, 2021
1 parent d2870f1 commit ac27e66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commands/CrudboosterInstallationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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...');
Expand Down

0 comments on commit ac27e66

Please sign in to comment.