Skip to content

Commit

Permalink
Merge pull request #449 from logicforte/laravel-10
Browse files Browse the repository at this point in the history
fix: GeneaLabs/laravel-model-caching issue #448
  • Loading branch information
mikebronner authored Mar 27, 2023
2 parents 5dd9c10 + 72716e3 commit 631bb7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Traits/ModelCaching.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@ public static function bootCachable()
// $instance->checkCooldownAndFlushAfterPersisting($instance);
// });

static::pivotSynced(function ($instance, $secondInstance, $relationship) {
static::pivotSynced(function ($instance, $relationship) {
$instance->checkCooldownAndFlushAfterPersisting($instance, $relationship);
});

static::pivotAttached(function ($instance, $secondInstance, $relationship) {
static::pivotAttached(function ($instance, $relationship) {
$instance->checkCooldownAndFlushAfterPersisting($instance, $relationship);
});

static::pivotDetached(function ($instance, $secondInstance, $relationship) {
static::pivotDetached(function ($instance, $relationship) {
$instance->checkCooldownAndFlushAfterPersisting($instance, $relationship);
});

static::pivotUpdated(function ($instance, $secondInstance, $relationship) {
static::pivotUpdated(function ($instance, $relationship) {
$instance->checkCooldownAndFlushAfterPersisting($instance, $relationship);
});
}
Expand Down

0 comments on commit 631bb7f

Please sign in to comment.