Skip to content

Commit

Permalink
Fix install command (#323)
Browse files Browse the repository at this point in the history
fix: install command app version
  • Loading branch information
arjunakevin committed Feb 21, 2023
1 parent 8549787 commit b77ef06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public function handle()

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

Expand Down

0 comments on commit b77ef06

Please sign in to comment.