Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
Fix laravel version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferry Ariawan committed Mar 25, 2021
1 parent ab2bc87 commit 11484bd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/commands/CrudboosterInstallationCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,13 @@ private function checkRequirements()
$system_failed = 0;
$laravel = app();

if ($laravel::VERSION >= 6 && $laravel::VERSION <= 8) {
$this->info('Laravel Version (>= 6): [Good]');
$this->info("Your laravel version: ".$laravel::VERSION);
$this->info("---");

if (version_compare($laravel::VERSION, "6.0", ">=")) {
$this->info('Laravel Version (>= 6.x): [Good]');
} else {
$this->info('Laravel Version (>= 6): [Bad]');
$this->info('Laravel Version (>= 6.x): [Bad]');
$system_failed++;
}

Expand Down Expand Up @@ -162,9 +165,9 @@ private function checkRequirements()
}

if (is_writable(base_path('public'))) {
$this->info('public dir is writable: [Good]');
$this->info('/public dir is writable: [Good]');
} else {
$this->info('public dir is writable: [Bad]');
$this->info('/public dir is writable: [Bad]');
$system_failed++;
}

Expand Down

0 comments on commit 11484bd

Please sign in to comment.