Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | public static function bootRefreshesPermissionCache() |
||
10 | { |
||
11 | static::created(function ($model) { |
||
12 | $model->forgetCachedPermissions(); |
||
13 | }); |
||
14 | |||
15 | static::updated(function ($model) { |
||
16 | $model->forgetCachedPermissions(); |
||
17 | }); |
||
18 | |||
19 | static::deleted(function ($model) { |
||
20 | $model->forgetCachedPermissions(); |
||
21 | }); |
||
22 | } |
||
23 | |||
42 |