Complete the code to set the default filesystem disk to S3 in Laravel's config.
'default' => '[1]',
Laravel uses the 's3' disk name to refer to the Amazon S3 storage driver.
Complete the code to upload a file to the S3 disk using Laravel's Storage facade.
Storage::disk('[1]')->put('folder/file.txt', $content);
To upload files to S3, you must specify the 's3' disk in the Storage facade.
Fix the error in the code to get the URL of a file stored on S3.
$url = Storage::disk('s3')->[1]('folder/file.txt');
The 'url' method returns the publicly accessible URL of the file on S3.
Fill both blanks to configure the S3 driver in Laravel's filesystems.php config.
's3' => [ 'driver' => '[1]', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION'), 'bucket' => env('AWS_BUCKET'), 'url' => env('[2]'), ],
The driver must be 's3' to use Amazon S3. The URL environment variable is 'AWS_URL' for S3.
Fill the blanks to generate a temporary signed URL for a private S3 file.
$url = Storage::disk('s3')->temporaryUrl('folder/file.txt', now()->add[1]([2]));
Use 'hours' and a number to specify how long the temporary URL is valid. Here, 30 hours is set.