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

Commit

Permalink
Merge pull request #1644 from Stupa163/v5.5
Browse files Browse the repository at this point in the history
Fixed issue caused by the new syntax of Process constructor since Laravel 7.0
  • Loading branch information
fherryfherry authored Jan 20, 2021
2 parents d2870f1 + ac27e66 commit 8df3402
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 8df3402

Please sign in to comment.