mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Update Storage facade section
This commit is contained in:
parent
466fdb2180
commit
9409f28393
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ The root of each disk listed in `config('tenancy.filesystem.disks')` will be suf
|
||||||
],
|
],
|
||||||
```
|
```
|
||||||
|
|
||||||
To make the tenant-aware `Storage` facade work with a custom disk, add the disk's name to `config('tenancy.filesystem.disks')` and override its root in `config('tenancy.filesystem.root_override')` as shown above.
|
To make the tenant-aware `Storage` facade work with a custom disk, add the disk's name to `config('tenancy.filesystem.disks')` and if the disk is local, override its root in `config('tenancy.filesystem.root_override')` as shown above. With S3, overriding the disk roots is not necessary – `Storage::disk('s3')->path('foo.txt')` will return `/tenant42/foo.txt`.
|
||||||
|
|
||||||
### Assets
|
### Assets
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue