diff --git a/app/Models/InstantWin.php b/app/Models/InstantWin.php index f3a05e8..35e9052 100644 --- a/app/Models/InstantWin.php +++ b/app/Models/InstantWin.php @@ -41,9 +41,18 @@ class InstantWin extends Model */ protected static function booted() { - static::creating(fn () => self::removeCached()); - static::updating(fn () => self::removeCached()); - static::deleting(fn () => self::removeCached()); + static::creating(function () { + InstantWin::removeCached(); + Prize::removeCached(); + }); + static::updating(function () { + InstantWin::removeCached(); + Prize::removeCached(); + }); + static::deleting(function () { + InstantWin::removeCached(); + Prize::removeCached(); + }); } // * RELATIONSHIPS diff --git a/composer.json b/composer.json index 7da2b39..430c63f 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "uwil/gen-game-web", - "version": "2.2.5", + "version": "2.2.6", "type": "project", "description": "Game generator", "support": { @@ -103,4 +103,4 @@ }, "minimum-stability": "stable", "prefer-stable": true -} +} \ No newline at end of file