| @@ 188-194 (lines=7) @@ | ||
| 185 | /** |
|
| 186 | * @SuppressWarnings(PHPMD.ShortVariable) |
|
| 187 | */ |
|
| 188 | public function find($id, $columns = ['*']) |
|
| 189 | { |
|
| 190 | return $this->cache($this->getCacheTags()) |
|
| 191 | ->rememberForever($this->getCacheKey($columns, $id), function () use ($id, $columns) { |
|
| 192 | return parent::find($id, $columns); |
|
| 193 | }); |
|
| 194 | } |
|
| 195 | ||
| 196 | public function first($columns = ['*']) |
|
| 197 | { |
|
| @@ 196-202 (lines=7) @@ | ||
| 193 | }); |
|
| 194 | } |
|
| 195 | ||
| 196 | public function first($columns = ['*']) |
|
| 197 | { |
|
| 198 | return $this->cache($this->getCacheTags()) |
|
| 199 | ->rememberForever($this->getCacheKey($columns) . '-first', function () use ($columns) { |
|
| 200 | return parent::first($columns); |
|
| 201 | }); |
|
| 202 | } |
|
| 203 | ||
| 204 | public function get($columns = ['*']) |
|
| 205 | { |
|
| @@ 204-210 (lines=7) @@ | ||
| 201 | }); |
|
| 202 | } |
|
| 203 | ||
| 204 | public function get($columns = ['*']) |
|
| 205 | { |
|
| 206 | return $this->cache($this->getCacheTags()) |
|
| 207 | ->rememberForever($this->getCacheKey($columns), function () use ($columns) { |
|
| 208 | return parent::get($columns); |
|
| 209 | }); |
|
| 210 | } |
|
| 211 | ||
| 212 | public function max($column) |
|
| 213 | { |
|