Total Complexity | 8 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class LaraCacheObserver |
||
8 | { |
||
9 | public function created(mixed $model): void |
||
10 | { |
||
11 | $model->cache()->refresh($model, Cache::$created); |
||
12 | } |
||
13 | |||
14 | public function updated(mixed $model): void |
||
18 | } |
||
19 | } |
||
20 | |||
21 | public function deleted(mixed $model): void |
||
24 | } |
||
25 | |||
26 | public function restored(mixed $model): void |
||
27 | { |
||
28 | $model->cache()->refresh($model, Cache::$restored); |
||
29 | } |
||
30 | |||
31 | private function isRestored(mixed $model): bool |
||
36 | } |
||
37 | } |
||
38 |