getCommand('GetObject', [ 'Bucket' => $this->song->s3_params['bucket'], 'Key' => $this->song->s3_params['key'], ]); $request = $s3->createPresignedRequest($cmd, '+1 hour'); // Get and redirect to the actual presigned-url return redirect((string) $request->getUri()); } }