@@ -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 | }) |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | { |
196 | 196 | // $time = \Carbon\Carbon::now()->addSeconds($time); |
197 | 197 | |
198 | - return $this->model->where(['primary_key' => $this->prefix.$key]) |
|
198 | + return $this->model->where(['primary_key' => $this->prefix.$key]) |
|
199 | 199 | ->where(function($q) { |
200 | 200 | return $q->where('expired_at', '>', \Carbon\Carbon::now())->orWhereNull('expired_at'); |
201 | 201 | }) |