@@ 180-186 (lines=7) @@ | ||
177 | /** |
|
178 | * @SuppressWarnings(PHPMD.ShortVariable) |
|
179 | */ |
|
180 | public function find($id, $columns = ['*']) |
|
181 | { |
|
182 | return $this->cache($this->getCacheTags()) |
|
183 | ->rememberForever($this->getCacheKey($columns, $id), function () use ($id, $columns) { |
|
184 | return parent::find($id, $columns); |
|
185 | }); |
|
186 | } |
|
187 | ||
188 | public function first($columns = ['*']) |
|
189 | { |
|
@@ 188-194 (lines=7) @@ | ||
185 | }); |
|
186 | } |
|
187 | ||
188 | public function first($columns = ['*']) |
|
189 | { |
|
190 | return $this->cache($this->getCacheTags()) |
|
191 | ->rememberForever($this->getCacheKey($columns) . '-first', function () use ($columns) { |
|
192 | return parent::first($columns); |
|
193 | }); |
|
194 | } |
|
195 | ||
196 | public function get($columns = ['*']) |
|
197 | { |
|
@@ 196-202 (lines=7) @@ | ||
193 | }); |
|
194 | } |
|
195 | ||
196 | public function get($columns = ['*']) |
|
197 | { |
|
198 | return $this->cache($this->getCacheTags()) |
|
199 | ->rememberForever($this->getCacheKey($columns), function () use ($columns) { |
|
200 | return parent::get($columns); |
|
201 | }); |
|
202 | } |
|
203 | ||
204 | public function max($column) |
|
205 | { |