Open bjora857 opened 9 years ago
I'm getting this same issue. The above 'createClient' change is working for me.
Fixed it in my fork: https://github.com/larkinwhitaker/laravel-db-backup/pull/4
Hi. This issue is still present in the package as of 7/22. Please update
protected function uploadS3() { $bucket = $this->option('upload-s3'); $s3 = AWS::get('s3'); $s3->putObject([ 'Bucket' => $bucket, 'Key' => $this->getS3DumpsPath() . '/' . $this->fileName, 'SourceFile' => $this->filePath, ]); }
When running: php artisan db:backup --upload-s3 my-bucket
I get the following error message " [BadMethodCallException] Unknown method: get. "
Commands/BackupCommand#123 It works fine if I change
$s3 = AWS::get('s3');
to$s3 = AWS::createClient('s3');