1 | <?php |
||
7 | trait Varnishable |
||
8 | { |
||
9 | /** |
||
10 | * Boot the Varnishable trait by attaching |
||
11 | * a new observer to the current model. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | public static function bootVarnishable(): void |
||
19 | |||
20 | /** |
||
21 | * When a model is being unserialized, fire eloquent wakeup event. |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | public function __wakeup(): void |
||
31 | } |
||
32 |