-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[11.x] Adds about command that Checks storage symbolic links status #54001
base: 11.x
Are you sure you want to change the base?
Changes from 1 commit
1da2c68
c20fc2f
bd8d30b
705eb72
7922089
9c84023
1f897aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,6 +163,7 @@ protected function gatherApplicationInformation() | |
|
||
$formatEnabledStatus = fn ($value) => $value ? '<fg=yellow;options=bold>ENABLED</>' : 'OFF'; | ||
$formatCachedStatus = fn ($value) => $value ? '<fg=green;options=bold>CACHED</>' : '<fg=yellow;options=bold>NOT CACHED</>'; | ||
$formatStorageLinkedStatus = fn ($value) => $value ? '<fg=green;options=bold>LINKED</>' : '<fg=yellow;options=bold>NOT LINKED</>'; | ||
|
||
static::addToSection('Environment', fn () => [ | ||
'Application Name' => config('app.name'), | ||
|
@@ -175,6 +176,7 @@ protected function gatherApplicationInformation() | |
'Maintenance Mode' => static::format($this->laravel->isDownForMaintenance(), console: $formatEnabledStatus), | ||
'Timezone' => config('app.timezone'), | ||
'Locale' => config('app.locale'), | ||
'Storage Linked' => static::format(file_exists(public_path('storage')), console:$formatStorageLinkedStatus), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 'Storage' => array_map(
fn($link) => static::format(file_exists($link), console: $formatStorage),
array_keys(config('filesystems.links'))
), There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It will be more accurate this way. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @selcukcukur I'll give that a shot! |
||
]); | ||
|
||
static::addToSection('Cache', fn () => [ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or it can also be set to exists or not exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@selcukcukur Hummm... the command that you'd run would be
artisan storage:link
which is why I went with Linked. I don't have any strong preferences though.