diff --git a/src/FeatureFlag.php b/src/FeatureFlag.php index ef5bcca..2b2747d 100644 --- a/src/FeatureFlag.php +++ b/src/FeatureFlag.php @@ -14,6 +14,8 @@ class FeatureFlag extends Model protected static function boot() { + parent::boot(); + static::saved(function ($model) { \Cache::forget('feature_flags:all'); });