Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Commit 8df3402

Browse files
authored
Merge pull request #1644 from Stupa163/v5.5
Fixed issue caused by the new syntax of Process constructor since Laravel 7.0
2 parents d2870f1 + ac27e66 commit 8df3402

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/commands/CrudboosterInstallationCommand.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ public function handle()
4949

5050
$this->info('Dumping the autoloaded files and reloading all new files...');
5151
$composer = $this->findComposer();
52-
$process = new Process($composer.' dumpautoload');
52+
53+
$process = (app()->version() >= 7.0)
54+
? new Process([$composer.' dumpautoload'])
55+
: new Process($composer.' dumpautoload');
56+
5357
$process->setWorkingDirectory(base_path())->run();
5458

5559
$this->info('Migrating database...');

0 commit comments

Comments
 (0)