@@ -53,7 +53,6 @@ class AboutCommand extends Command
53
53
* Create a new command instance.
54
54
*
55
55
* @param \Illuminate\Support\Composer $composer
56
- * @return void
57
56
*/
58
57
public function __construct (Composer $ composer )
59
58
{
@@ -165,6 +164,7 @@ protected function gatherApplicationInformation()
165
164
166
165
$ formatEnabledStatus = fn ($ value ) => $ value ? '<fg=yellow;options=bold>ENABLED</> ' : 'OFF ' ;
167
166
$ formatCachedStatus = fn ($ value ) => $ value ? '<fg=green;options=bold>CACHED</> ' : '<fg=yellow;options=bold>NOT CACHED</> ' ;
167
+ $ formatStorageLinkedStatus = fn ($ value ) => $ value ? '<fg=green;options=bold>LINKED</> ' : '<fg=yellow;options=bold>NOT LINKED</> ' ;
168
168
169
169
static ::addToSection ('Environment ' , fn () => [
170
170
'Application Name ' => config ('app.name ' ),
@@ -183,7 +183,7 @@ protected function gatherApplicationInformation()
183
183
'Config ' => static ::format ($ this ->laravel ->configurationIsCached (), console: $ formatCachedStatus ),
184
184
'Events ' => static ::format ($ this ->laravel ->eventsAreCached (), console: $ formatCachedStatus ),
185
185
'Routes ' => static ::format ($ this ->laravel ->routesAreCached (), console: $ formatCachedStatus ),
186
- 'Views ' => static ::format ($ this ->hasPhpFiles ($ this -> laravel -> storagePath ( ' framework/views ' )), console: $ formatCachedStatus ),
186
+ 'Views ' => static ::format ($ this ->hasPhpFiles (config ( ' view.compiled ' )), console: $ formatCachedStatus ),
187
187
]);
188
188
189
189
static ::addToSection ('Drivers ' , fn () => array_filter ([
@@ -214,9 +214,30 @@ protected function gatherApplicationInformation()
214
214
'Session ' => config ('session.driver ' ),
215
215
]));
216
216
217
+ static ::addToSection ('Storage ' , fn () => [
218
+ ...$ this ->determineStoragePathLinkStatus ($ formatStorageLinkedStatus ),
219
+ ]);
220
+
217
221
(new Collection (static ::$ customDataResolvers ))->each ->__invoke ();
218
222
}
219
223
224
+ /**
225
+ * Determine storage symbolic links status.
226
+ *
227
+ * @param callable $formatStorageLinkedStatus
228
+ * @return array<string,mixed>
229
+ */
230
+ protected function determineStoragePathLinkStatus (callable $ formatStorageLinkedStatus ): array
231
+ {
232
+ return (new Collection (config ('filesystems.links ' , [])))
233
+ ->mapWithKeys (function ($ target , $ link ) use ($ formatStorageLinkedStatus ) {
234
+ $ path = Str::replace (public_path (), '' , $ link );
235
+
236
+ return [public_path ($ path ) => static ::format (file_exists ($ link ), console: $ formatStorageLinkedStatus )];
237
+ })
238
+ ->toArray ();
239
+ }
240
+
220
241
/**
221
242
* Determine whether the given directory has PHP files.
222
243
*
0 commit comments