From edd1ae037f1dd6930957701dbaa330f6f42e3079 Mon Sep 17 00:00:00 2001 From: Ratha8 Date: Fri, 25 Oct 2019 11:01:19 +0700 Subject: [PATCH 1/2] Update TinifyService.php --- src/Services/TinifyService.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Services/TinifyService.php b/src/Services/TinifyService.php index be38d41..3d918b6 100644 --- a/src/Services/TinifyService.php +++ b/src/Services/TinifyService.php @@ -20,9 +20,9 @@ public function __construct() { $this->client = new Tinify(); $this->client->setKey($this->apikey); - $this->s3_key = env('S3_KEY'); - $this->s3_secret = env('S3_SECRET'); - $this->s3_region = env('S3_REGION'); + $this->s3_key = config('tinify.s3_key'); + $this->s3_secret = config('tinify.s3_secret'); + $this->s3_region = config('tinify.s3_region'); } public function setKey($key) { return $this->client->setKey($key); @@ -106,4 +106,4 @@ public function validate() { return true; } } -} \ No newline at end of file +} From e96c55c80e19be400cf7318a4c5c69078c12c79b Mon Sep 17 00:00:00 2001 From: Ratha8 Date: Fri, 25 Oct 2019 13:16:35 +0700 Subject: [PATCH 2/2] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ee9a7d4..30dab46 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "yasmuru/ys-tinify-laravel", + "name": "yasmuru/ys-tinypng-laravel", "type": "library", "description": "Tinify API support with laravel", "keywords": ["tinify","tinypng", "laravel"],