File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,18 @@ use Joaopaulolndev\FilamentEditProfile\Pages\EditProfilePage;
114
114
])
115
115
```
116
116
117
+ If needed you can define the disk and visibility of the avatar image. In the config file add the following:
118
+
119
+ [ config/filament-edit-profile.php] ( config/filament-edit-profile.php )
120
+
121
+ ``` php
122
+ return [
123
+ 'disk' => 's3',
124
+ 'visibility' => 'public',
125
+ ];
126
+ ```
127
+
128
+
117
129
## Profile Avatar
118
130
119
131
![ Screenshot of avatar Feature] ( https://raw.githubusercontent.com/joaopaulolndev/filament-edit-profile/main/art/profile-avatar.png )
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ public function form(Form $form): Form
43
43
->label (__ ('filament-edit-profile::default.avatar ' ))
44
44
->avatar ()
45
45
->imageEditor ()
46
+ ->disk (config ('filament-edit-profile.disk ' , 'public ' ))
47
+ ->visibility (config ('filament-edit-profile.visibility ' , 'public ' ))
46
48
->directory (filament ('filament-edit-profile ' )->getAvatarDirectory ())
47
49
->rules (filament ('filament-edit-profile ' )->getAvatarRules ())
48
50
->hidden (! filament ('filament-edit-profile ' )->getShouldShowAvatarForm ()),
You can’t perform that action at this time.
0 commit comments