Skip to content

Commit

Permalink
Update MonitorVisitMiddleware.php
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Jul 25, 2023
1 parent e084082 commit 5cad174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middlewares/MonitorVisitMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MonitorVisitMiddleware
public function handle(Request $request, Closure $next)
{
$agent = new Agent();
$guard = config('user-monitoring.user.guard');
$guard = config('user-monitoring.user.guard', 'web');
$exceptPages = config('user-monitoring.visit_monitoring.expect_pages', []);

if (empty($exceptPages) || !$this->checkIsExpectPages($request->path(), $exceptPages)) {
Expand Down

0 comments on commit 5cad174

Please sign in to comment.