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"], 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 +}