Skip to content

Commit b77ef06

Browse files
authored
Fix install command (#323)
fix: install command app version
1 parent 8549787 commit b77ef06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Commands/InstallCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public function handle()
3737

3838
$this->line('Dumping the autoloaded files and reloading all new files.. 🍪');
3939
$composer = $this->findComposer();
40-
$process = new Process(app()::VERSION[0]>6 ? [$composer.' dump-autoload'] : $composer.' dump-autoload') ;
40+
$appVersion = explode('.', app()::VERSION);
41+
$process = new Process($appVersion[0]>6 ? [$composer.' dump-autoload'] : $composer.' dump-autoload') ;
4142
$process->setTimeout(null);
4243
$process->setWorkingDirectory(base_path())->run();
4344

0 commit comments

Comments
 (0)