diff --git a/src/Middlewares/VisitMonitoringMiddleware.php b/src/Middlewares/VisitMonitoringMiddleware.php index 30fffd0..260411d 100644 --- a/src/Middlewares/VisitMonitoringMiddleware.php +++ b/src/Middlewares/VisitMonitoringMiddleware.php @@ -4,7 +4,6 @@ use Closure; use Illuminate\Http\Request; -use Illuminate\Http\Response; use Illuminate\Support\Facades\DB; use Jenssegers\Agent\Agent; @@ -13,7 +12,7 @@ class VisitMonitoringMiddleware /** * Handle monitor visiting. */ - public function handle(Request $request, Closure $next): Response + public function handle(Request $request, Closure $next): mixed { if (config('user-monitoring.visit_monitoring.turn_on', false) === false) { return $next($request); @@ -45,12 +44,8 @@ public function handle(Request $request, Closure $next): Response /** * Check request page are exists in expect pages. - * - * @param string $page - * @param array $exceptPages - * @return bool */ - private function checkIsExceptPages(string $page, array $exceptPages) + private function checkIsExceptPages(string $page, array $exceptPages): bool { return collect($exceptPages)->contains($page); }