From 5c4bf4225106e5d2a1348de4e717a1ef8432b332 Mon Sep 17 00:00:00 2001 From: Dan Date: Wed, 6 Nov 2024 08:50:55 +0000 Subject: [PATCH] Merge pull request #14723 from filamentphp/export-dynamically-swap-public-for-local-disk --- docs/01-installation.md | 6 ++++++ docs/15-upgrade-guide.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/01-installation.md b/docs/01-installation.md index e3e4fbfe..52e0e8bb 100644 --- a/docs/01-installation.md +++ b/docs/01-installation.md @@ -112,6 +112,12 @@ class User extends Authenticatable implements FilamentUser Learn more about [users](users). +### Using a production-ready storage disk + +Filament has a storage disk defined in the [configuration](#publishing-configuration), which by default is set to `public`. You can set the `FILAMENT_FILESYSTEM_DISK` environment variable to change this. + +The `public` disk, while great for easy local development, is not suitable for production. It does not support file visibility, so features of Filament such as [file uploads](../forms/fields/file-upload) will create public files. In production, you need to use a production-ready disk such as `s3` with a private access policy, to prevent unauthorized access to the uploaded files. + ## Publishing configuration You can publish the Filament package configuration (if needed) using the following command: diff --git a/docs/15-upgrade-guide.md b/docs/15-upgrade-guide.md index 0b9b1ce3..19a5e5c4 100644 --- a/docs/15-upgrade-guide.md +++ b/docs/15-upgrade-guide.md @@ -193,7 +193,7 @@ When using simple resources, remove the `CanCreateRecords`, `CanDeleteRecords`, We also deprecated type-specific relation manager classes. Any classes extending `BelongsToManyRelationManager`, `HasManyRelationManager`, `HasManyThroughRelationManager`, `MorphManyRelationManager`, or `MorphToManyRelationManager` should now extend `\Filament\Resources\RelationManagers\RelationManager`. You can also remove the `CanAssociateRecords`, `CanAttachRecords`, `CanCreateRecords`, `CanDeleteRecords`, `CanDetachRecords`, `CanDisassociateRecords`, `CanEditRecords`, and `CanViewRecords` traits from relation managers. -To learn more about v2.13 changes, read our [blog post](https://filamentphp.com/blog/v2130-admin-resources). +To learn more about v2.13 changes, read our [blog post](https://v2.filamentphp.com/blog/v2130-admin-resources). #### Blade components