mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 10:14:03 +00:00
Update filesystem tenancy documentation (#201)
* Update filesystem bootstrapper page WIP * Filesystem bootstrapper rewrite * Correct writing * Update 'is not set' to 'is null' * Update the suffix base comment to be more understandable Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com> * Update storage path helper suffix explanation * Improve docs page in response to review * Use the actual suffix instead of the $suffix variable Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com> * Include the file structure tenancy image in the repo * Use the actual suffix instead of the $suffix variable again Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com> * Specify what `asset()` returns Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com> * Restructure assets section * Use 'returned' instead of 'retrieved' Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com> * Apply suggestions from code review Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com> * Say that configuring the asset URL changes the helper's behavior * Update global assets section according to review * Update disabling asset() section according to suggestion * Change 'ID' to 'key' * Update `Storage` facade section * Specify the asset() output with ASSET_URL configured Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
ca2ee41ab4
commit
f84ab20c5e
4 changed files with 67 additions and 24 deletions
|
|
@ -19,7 +19,7 @@ That's what the `root_override` section is for. `%storage_path%` gets replaced b
|
|||
|
||||
Since `storage_path()` will be suffixed, your folder structure will look like this:
|
||||
|
||||

|
||||

|
||||
|
||||
If you write to these directories, you will need to create them after you create the tenant. See the docs for [PHP's mkdir](http://php.net/function.mkdir).
|
||||
|
||||
|
|
@ -49,4 +49,4 @@ Storage::disk('public')->put($filename, $data);
|
|||
Storage::disk('local')->put("public/$filename", $data);
|
||||
```
|
||||
|
||||
If you want to store something globally, simply create a new disk and *don't* add it to the `tenancy.filesystem.disks` config.
|
||||
If you want to store something globally, simply create a new disk and *don't* add it to the `tenancy.filesystem.disks` config.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue