@@ -53,7 +53,6 @@ class AboutCommand extends Command
5353 * Create a new command instance.
5454 *
5555 * @param \Illuminate\Support\Composer $composer
56- * @return void
5756 */
5857 public function __construct (Composer $ composer )
5958 {
@@ -165,6 +164,7 @@ protected function gatherApplicationInformation()
165164
166165 $ formatEnabledStatus = fn ($ value ) => $ value ? '<fg=yellow;options=bold>ENABLED</> ' : 'OFF ' ;
167166 $ 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</> ' ;
168168
169169 static ::addToSection ('Environment ' , fn () => [
170170 'Application Name ' => config ('app.name ' ),
@@ -183,7 +183,7 @@ protected function gatherApplicationInformation()
183183 'Config ' => static ::format ($ this ->laravel ->configurationIsCached (), console: $ formatCachedStatus ),
184184 'Events ' => static ::format ($ this ->laravel ->eventsAreCached (), console: $ formatCachedStatus ),
185185 '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 ),
187187 ]);
188188
189189 static ::addToSection ('Drivers ' , fn () => array_filter ([
@@ -214,9 +214,30 @@ protected function gatherApplicationInformation()
214214 'Session ' => config ('session.driver ' ),
215215 ]));
216216
217+ static ::addToSection ('Storage ' , fn () => [
218+ ...$ this ->determineStoragePathLinkStatus ($ formatStorageLinkedStatus ),
219+ ]);
220+
217221 (new Collection (static ::$ customDataResolvers ))->each ->__invoke ();
218222 }
219223
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+
220241 /**
221242 * Determine whether the given directory has PHP files.
222243 *
0 commit comments