1 | <?php |
||
8 | class VarnishableObserver |
||
9 | { |
||
10 | /** |
||
11 | * Listening to any saved events. |
||
12 | * |
||
13 | * @param \Illuminate\Database\Eloquent\Model $model |
||
14 | * |
||
15 | * @return void |
||
16 | */ |
||
17 | public function deleted(Model $model) |
||
21 | |||
22 | /** |
||
23 | * Handle any retrieved and wakeup events on |
||
24 | * the observed models. |
||
25 | * |
||
26 | * @param \Illuminate\Database\Eloquent\Model $model |
||
27 | * |
||
28 | * @return void |
||
29 | */ |
||
30 | protected function handleModelInitialization(Model $model) |
||
36 | |||
37 | /** |
||
38 | * Handle any update events on the observed models. |
||
39 | * |
||
40 | * @param \Illuminate\Database\Eloquent\Model $model |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | protected function handleModelUpdates(Model $model) |
||
48 | |||
49 | /** |
||
50 | * Listening to any saved events. |
||
51 | * |
||
52 | * @param \Illuminate\Database\Eloquent\Model $model |
||
53 | * |
||
54 | * @return void |
||
55 | */ |
||
56 | public function restored(Model $model) |
||
60 | |||
61 | /** |
||
62 | * Listening to any retrieved events. |
||
63 | * |
||
64 | * @param \Illuminate\Database\Eloquent\Model $model |
||
65 | * |
||
66 | * @return void |
||
67 | */ |
||
68 | public function retrieved(Model $model) |
||
72 | |||
73 | /** |
||
74 | * Listening to any saved events. |
||
75 | * |
||
76 | * @param \Illuminate\Database\Eloquent\Model $model |
||
77 | * |
||
78 | * @return void |
||
79 | */ |
||
80 | public function saved(Model $model) |
||
84 | |||
85 | /** |
||
86 | * Listening to any wakeup events. |
||
87 | * |
||
88 | * @param \Illuminate\Database\Eloquent\Model $model |
||
89 | * |
||
90 | * @return void |
||
91 | */ |
||
92 | public function wakeup(Model $model) |
||
96 | } |
||
97 |