From 67ef0f3b881fd1ef0e49f3bde762fe4a4987b07c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Judica=C3=ABl=20AHYI?= Date: Sun, 1 Dec 2024 11:46:46 +0100 Subject: [PATCH] refactor(config): add default config in filament-edit-profile.php and update README.md - use of FILESYSTEM_DISK for disk to match default application filesystem disk. - use of fallback 'public' and not 'local' to avoid introducing breaking changes in existing installation - 'visibility' is 'public' while comment added to explain it can be updated - update `README.md` config's example --- README.md | 4 ++-- config/filament-edit-profile.php | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 79ce952..5c720b6 100644 --- a/README.md +++ b/README.md @@ -120,8 +120,8 @@ If needed you can define the disk and visibility of the avatar image. In the con ```php return [ - 'disk' => 's3', - 'visibility' => 'public', + 'disk' => env('FILESYSTEM_DISK', 'public'), + 'visibility' => 'public', // or replace by filesystem disk visibility with fallback value ]; ``` diff --git a/config/filament-edit-profile.php b/config/filament-edit-profile.php index ca5d8ed..e961079 100644 --- a/config/filament-edit-profile.php +++ b/config/filament-edit-profile.php @@ -1,5 +1,6 @@ env('FILESYSTEM_DISK', 'public'), + 'visibility' => 'public', // or replace by filesystem disk visibility with fallback value ];