From 00610f06378484dc75c236e5d97e66dae27f2d97 Mon Sep 17 00:00:00 2001 From: G Whitley Date: Wed, 11 Aug 2021 11:03:13 +0100 Subject: [PATCH] Update profile-management.md Added some extra information related to using s3 buckets. --- 2.x/features/profile-management.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/2.x/features/profile-management.md b/2.x/features/profile-management.md index 6a90c79..86f8b4a 100644 --- a/2.x/features/profile-management.md +++ b/2.x/features/profile-management.md @@ -55,8 +55,22 @@ This trait contains methods such as `updateProfilePhoto`, `getProfilePhotoUrlAtt The `updateProfilePhoto` method is the primary method used to store profile photos and is called by your application's `App\Actions\Fortify\UpdateUserProfileInformation` action class. -:::tip Laravel Vapor +If you would like to use an AWS S3 bucket to store profile photos, make sure that you have set 's3' as the disk of choice in `App\config\jetstream.php`: + +Change: +```json +'profile_photo_disk' => 'local' +``` +To: +```json +'profile_photo_disk' => 's3' +``` +:::tip Permissions +You may also want to investigate and decide which permissions you would like to apply to the bucket and individual image objects. You may find the [AWS documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingObjects.html) helpful. +::: + +:::tip Laravel Vapor By default, the `s3` disk will be used to store profile photos when your Jetstream application is running within [Laravel Vapor](https://vapor.laravel.com). :::