Skip to content

Commit

Permalink
Clear component structures
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 committed Jul 30, 2024
1 parent c341e87 commit 05020d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Scout/Scout.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public function get(): Collection

public function clear(): void
{
$this->getComponentStructures()->clear();

Cache::store($this->getCacheStore())->forget($this->getCacheKey());
}

Expand Down

0 comments on commit 05020d3

Please sign in to comment.