@@ -299,7 +299,8 @@ public function it_migrates_disk_with_local_driver()
299299
300300 'local' => [
301301 'driver' => 'local',
302- 'root' => storage_path('app'),
302+ 'root' => storage_path('app/private'),
303+ 'serve' => true,
303304 'throw' => false,
304305 'report' => false,
305306 ],
@@ -369,7 +370,8 @@ public function it_migrates_disk_with_s3_driver()
369370
370371 'local' => [
371372 'driver' => 'local',
372- 'root' => storage_path('app'),
373+ 'root' => storage_path('app/private'),
374+ 'serve' => true,
373375 'throw' => false,
374376 'report' => false,
375377 ],
@@ -438,7 +440,8 @@ public function it_migrates_disk_with_terser_key_when_assets_already_exists()
438440
439441 'local' => [
440442 'driver' => 'local',
441- 'root' => storage_path('app'),
443+ 'root' => storage_path('app/private'),
444+ 'serve' => true,
442445 'throw' => false,
443446 'report' => false,
444447 ],
@@ -513,7 +516,8 @@ public function it_migrates_multiple_disks_with_terser_keys_only()
513516
514517 'local' => [
515518 'driver' => 'local',
516- 'root' => storage_path('app'),
519+ 'root' => storage_path('app/private'),
520+ 'serve' => true,
517521 'throw' => false,
518522 'report' => false,
519523 ],
@@ -619,7 +623,8 @@ public function it_overwrites_disks_when_forced()
619623
620624 'local' => [
621625 'driver' => 'local',
622- 'root' => storage_path('app'),
626+ 'root' => storage_path('app/private'),
627+ 'serve' => true,
623628 'throw' => false,
624629 'report' => false,
625630 ],
@@ -797,11 +802,22 @@ protected function normalizeLocalConfig($config)
797802 ],
798803EOT;
799804
805+ // Up until Laravel 12
806+ $ variants [] = <<<'EOT'
807+ 'local' => [
808+ 'driver' => 'local',
809+ 'root' => storage_path('app'),
810+ 'throw' => false,
811+ 'report' => false,
812+ ],
813+ EOT;
814+
800815 // Current version
801816 $ current = <<<'EOT'
802817 'local' => [
803818 'driver' => 'local',
804- 'root' => storage_path('app'),
819+ 'root' => storage_path('app/private'),
820+ 'serve' => true,
805821 'throw' => false,
806822 'report' => false,
807823 ],
0 commit comments