Skip to content

Commit af6f434

Browse files
authored
Merge pull request #2520 from Laravel-Backpack/fix-2518
[Bug] Fix php artisan backpack:version command
2 parents 28e8022 + 12301f2 commit af6f434

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/app/Console/Commands/Version.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ class Version extends Command
3030
public function handle()
3131
{
3232
$this->comment('### PHP VERSION:');
33-
$this->runConsoleCommand('php -v');
33+
$this->runConsoleCommand(['php', '-v']);
3434

3535
$this->comment('### LARAVEL VERSION:');
36-
$this->runConsoleCommand('composer show | grep "laravel/framework"');
36+
$this->line(\PackageVersions\Versions::getVersion('laravel/framework'));
37+
$this->line('');
3738

3839
$this->comment('### BACKPACK VERSION:');
39-
$this->runConsoleCommand('composer show | grep "backpack"');
40+
$this->line(\PackageVersions\Versions::getVersion('backpack/crud'));
41+
$this->line('');
4042
}
4143

4244
/**

0 commit comments

Comments
 (0)