Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #24 from mlantz/master
Browse files Browse the repository at this point in the history
Fix for Laravel 5.7
  • Loading branch information
alnutile authored Sep 17, 2018
2 parents 7ce2b1f + 2a6fb90 commit 47aa2e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FeatureFlag.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class FeatureFlag extends Model

protected static function boot()
{
parent::boot();

static::saved(function ($model) {
\Cache::forget('feature_flags:all');
});
Expand Down

0 comments on commit 47aa2e7

Please sign in to comment.