| Conditions | 2 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace GeneaLabs\LaravelModelCaching; |
||
| 14 | public function newEloquentBuilder($query) |
||
| 15 | { |
||
| 16 | return new Builder($query); |
||
| 17 | } |
||
| 18 | |||
| 19 | public static function boot() |
||
| 20 | { |
||
| 21 | parent::boot(); |
||
| 22 | $class = get_called_class(); |
||
| 23 | $instance = new $class; |
||
| 24 | |||
| 25 | static::created(function () use ($instance) { |
||
| 26 | $instance->flushCache(); |
||
| 27 | }); |
||
| 28 | |||
| 29 | static::deleted(function () use ($instance) { |
||
| 59 |