backup add feature: upload to google drive

This commit is contained in:
xiaomlove
2021-05-11 01:41:58 +08:00
parent 3e4471f533
commit fa57e78c74
8 changed files with 26 additions and 13 deletions

View File

@@ -14,7 +14,7 @@ class GoogleDriveServiceProvider extends ServiceProvider
*/
public function boot()
{
Storage::extend('google_dirve', function($app, $config) {
Storage::extend('google_drive', function($app, $config) {
$client = new \Google_Client();
$client->setClientId($config['clientId']);
$client->setClientSecret($config['clientSecret']);