You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran through the installation and getting started for this package and when I try called the createClient method I ran into the Object of class Aws\\S3\\S3Client could not be converted to string error. Any insight into this? Here is the class I'm calling it from
<?php
namespace App\Services;
use App\Services\AccessToken;
use Illuminate\Support\Facades\Http;
use Illuminate\Http\Client\RequestException;
use AWS;
class Test
{
function __construct()
{
$s3 = AWS::createClient('s3');
\Log::info($s3);
}
}
Here is my aws.php config file
<?php
use Aws\Laravel\AwsServiceProvider;
return [
/*
|--------------------------------------------------------------------------
| AWS SDK Configuration
|--------------------------------------------------------------------------
|
| The configuration options set in this file will be passed directly to the
| `Aws\Sdk` object, from which all client objects are created. This file
| is published to the application config directory for modification by the
| user. The full set of possible options are documented at:
| http://docs.aws.amazon.com/aws-sdk-php/v3/guide/guide/configuration.html
|
*/
'credentials' => [
'key' => env('AWS_ACCESS_KEY_ID', ''),
'secret' => env('AWS_SECRET_ACCESS_KEY', ''),
],
'region' => env('AWS_REGION', 'us-east-1'),
'version' => 'latest',
'ua_append' => [
'L5MOD/' . AwsServiceProvider::VERSION,
],
];
I also have my env set correctly and my service provider and aliases set up correctly
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello all,
I ran through the installation and getting started for this package and when I try called the createClient method I ran into the
Object of class Aws\\S3\\S3Client could not be converted to string
error. Any insight into this? Here is the class I'm calling it fromHere is my aws.php config file
I also have my env set correctly and my service provider and aliases set up correctly
Beta Was this translation helpful? Give feedback.
All reactions