Skip to content

Commit 6bc6cd0

Browse files
Clarify local disk path change in v12 upgrade guide (#10635)
* mention storage change * wip * wip * Update upgrade.md --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent bba3e74 commit 6bc6cd0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

upgrade.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- [Concurrency Result Index Mapping](#concurrency-result-index-mapping)
3131
- [Container Class Dependency Resolution](#container-class-dependency-resolution)
3232
- [Image Validation Now Excludes SVGs](#image-validation)
33+
- [Local Filesystem Disk Default Root Path](#local-filesystem-disk-default-root-path)
3334
- [Multi-Schema Database Inspecting](#multi-schema-database-inspecting)
3435
- [Nested Array Request Merging](#nested-array-request-merging)
3536

@@ -221,12 +222,24 @@ $request->mergeIfMissing([
221222
]);
222223
```
223224

225+
<a name="storage"></a>
226+
### Storage
227+
228+
<a name="local-filesystem-disk-default-root-path"></a>
229+
#### Local Filesystem Disk Default Root Path
230+
231+
**Likelihood Of Impact: Low**
232+
233+
If your application does not explicitly define a `local` disk in your filesystems configuration, Laravel will now default the local disk's root to `storage/app/private`. In previous releases, this defaulted to `storage/app`. As a result, calls to `Storage::disk('local')` will read from and write to `storage/app/private` unless otherwise configured. To restore the previous behavior, you may define the `local` disk manually and set the desired root path.
234+
224235
<a name="validation"></a>
225236
### Validation
226237

227238
<a name="image-validation"></a>
228239
#### Image Validation Now Excludes SVGs
229240

241+
**Likelihood Of Impact: Low**
242+
230243
The `image` validation rule no longer allows SVG images by default. If you would like to allow SVGs when using the `image` rule, you must explicitly allow them:
231244

232245
```php

0 commit comments

Comments
 (0)