Skip to content

Commit

Permalink
fix: update config and service provider
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmichael123 committed Apr 27, 2021
1 parent 36d7721 commit 43a7ad1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
/*
* The publishable API key provided by the meema API
*/
'api_secret_key' => env('MEEMA_API_SECRET', ''),
'api_secret' => env('MEEMA_API_SECRET', ''),

/*
* If you prefer to not work with a collections, you may set this
* If you prefer to not work with collections, you may set this
* value to false and there will be an array response.
*/
'to_collection' => env('MEEMA_API_TO_COLLECTION', true),
'to_collection' => env('MEEMA_API_COLLECTION', true),
];
4 changes: 2 additions & 2 deletions src/Providers/MeemaServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function boot()

Storage::extend('meema', function ($app, $config) {
$client = new MeemaClient(
$config['api_secret_key']
$config['api_secret']
);

return new Filesystem(new MeemaAdapter($client));
Expand Down Expand Up @@ -87,7 +87,7 @@ protected function registerMeemaClient()
'to_collection' => config('meema.to_collection'),
];

return new MeemaClient(config('meema.api_key'), $config);
return new MeemaClient(config('meema.api_secret'), $config);
});
}
}

0 comments on commit 43a7ad1

Please sign in to comment.