Skip to content

Commit

Permalink
Merge pull request #49 from mokhosh/add-wildcards-to-except
Browse files Browse the repository at this point in the history
Allow for wildcards in exception paths
  • Loading branch information
khanzadimahdi authored Jul 27, 2023
2 parents 96f8977 + 6769923 commit 0657b93
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Visitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,12 @@ public function getVisitor() : ?Model
*/
public function visit(Model $model = null)
{
if(in_array($this->request->path(), $this->except)){
return;
}
foreach ($this->except as $path) {
if ($this->request->is($path)) {
return;
}
}


$data = $this->prepareLog();

Expand Down

0 comments on commit 0657b93

Please sign in to comment.