Use the actual suffix instead of the $suffix variable

Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
lukinovec 2022-09-27 11:26:46 +02:00 committed by GitHub
parent f7a0ca4011
commit 508cbeb168
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ The filesystem bootstrapper makes your app's `storage_path()` and `asset()` help
The bootstrapper suffixes the path retrieved by `storage_path()` to make the helper tenant-aware. The bootstrapper suffixes the path retrieved by `storage_path()` to make the helper tenant-aware.
- The suffix is built by appending the tenant key to your `suffix_base`. The `suffix_base` is `tenant` by default, but feel free to change it in the `tenancy.filesystem` config. For example, the suffix will be `tenant42` if the tenant's key is `42` and the `suffix_base` is `tenant`. - The suffix is built by appending the tenant key to your `suffix_base`. The `suffix_base` is `tenant` by default, but feel free to change it in the `tenancy.filesystem` config. For example, the suffix will be `tenant42` if the tenant's key is `42` and the `suffix_base` is `tenant`.
- After the suffixing, `storage_path()` helper returns `"/$path_to_your_application/storage/$suffix/"` - After the suffixing, `storage_path()` helper returns `"/$path_to_your_application/storage/tenant42/"`
Since `storage_path()` will be suffixed, your folder structure will look like this: Since `storage_path()` will be suffixed, your folder structure will look like this: