Skip to content

3.0.0

Compare
Choose a tag to compare
@rennokki rennokki released this 17 Jul 18:03
· 91 commits to master since this release
a253bb0
  • Added support for many to many automatic invalidations (#78)

Read the 3.x Documentation on Many-to-Many Automatic Cache Invalidation

getCacheTagsToInvalidateOnUpdate changed:

For invalidation on many-to-many relations, $relation will be the name of the relation (posts, roles, etc.) while $pivotedModels will be a collection of models that got attached/detached/updated (Post, Role, etc.)

public function getCacheTagsToInvalidateOnUpdate($relation = null, $pivotedModels = null): array
{
    //
}