From b77ef06a061f48bec677051ced451421266ecdd3 Mon Sep 17 00:00:00 2001 From: Kevin Arjuna <52127836+arjunakevin@users.noreply.github.com> Date: Wed, 22 Feb 2023 02:12:38 +0700 Subject: [PATCH] Fix install command (#323) fix: install command app version --- src/Commands/InstallCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Commands/InstallCommand.php b/src/Commands/InstallCommand.php index 6247639a..b01f92fa 100644 --- a/src/Commands/InstallCommand.php +++ b/src/Commands/InstallCommand.php @@ -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();