@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | public function get(string $key, $member = null) |
67 | 67 | { |
68 | 68 | if(! empty($member) || is_numeric($member)) { |
69 | - return $this->model->where(['primary_key' => $this->prefix.$key, 'secondary_key' => $member]) |
|
69 | + return $this->model->where(['primary_key' => $this->prefix.$key, 'secondary_key' => $member]) |
|
70 | 70 | ->where(function($q) { |
71 | 71 | return $q->where('expired_at', '>', \Carbon\Carbon::now())->orWhereNull('expired_at'); |
72 | 72 | }) |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | |
193 | 193 | public function setExpiration(string $key, int $time): bool |
194 | 194 | { |
195 | - return $this->model->where(['primary_key' => $this->prefix.$key]) |
|
195 | + return $this->model->where(['primary_key' => $this->prefix.$key]) |
|
196 | 196 | ->where(function($q) { |
197 | 197 | return $q->where('expired_at', '>', \Carbon\Carbon::now())->orWhereNull('expired_at'); |
198 | 198 | }) |