1 | <?php |
||
7 | trait CacheableTrait |
||
8 | { |
||
9 | /** |
||
10 | * Boot the Cacheable trait by attaching |
||
11 | * a new observer to the current model. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | public static function bootCacheableTrait() |
||
19 | |||
20 | /** |
||
21 | * Generate cache tags automatically |
||
22 | * based on the model class name. |
||
23 | * |
||
24 | * @return string|array |
||
25 | */ |
||
26 | public function cacheTags() |
||
34 | } |
||
35 |