Skip to content

Commit

Permalink
[src/Console]: Fix not required resource color on the AdminLteStatus …
Browse files Browse the repository at this point in the history
…command for old Laravel versions
  • Loading branch information
dfsmania committed Jul 4, 2024
1 parent a9d51f1 commit 32cdc81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Console/AdminLteStatusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,12 @@ protected function showResourcesStatus($resStatus)
// Create the table rows.

$tblContent = [];
$notRequiredColor = intval(app()->version()) >= 8 ? 'gray' : 'default';

foreach ($this->pkgResources as $name => $resource) {
$requiredLabel = $resource->required
? 'yes'
: $this->styleOutput('no', 'gray');
: $this->styleOutput('no', $notRequiredColor);

$tblContent[] = [
$name,
Expand Down

0 comments on commit 32cdc81

Please sign in to comment.