From cdb3d8838b0b11f5e4d21efbabfd3c5548cd89ce Mon Sep 17 00:00:00 2001 From: Ratha8 Date: Thu, 24 Oct 2019 16:33:54 +0700 Subject: [PATCH] fix value return null from .env --- 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 +}