aboutsummaryrefslogtreecommitdiff
path: root/app/Http/Middleware
diff options
context:
space:
mode:
Diffstat (limited to 'app/Http/Middleware')
-rw-r--r--app/Http/Middleware/PageView.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/app/Http/Middleware/PageView.php b/app/Http/Middleware/PageView.php
deleted file mode 100644
index dda0662..0000000
--- a/app/Http/Middleware/PageView.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-
-namespace App\Http\Middleware;
-
-use Closure;
-use Illuminate\Http\Request;
-use PostHog\PostHog;
-use Symfony\Component\HttpFoundation\Response;
-
-class PageView
-{
- /**
- * Handle an incoming request.
- *
- * @param \Closure(\Illuminate\Http\Request): (\Symfony\Component\HttpFoundation\Response) $next
- */
- public function handle(Request $request, Closure $next): Response
- {
- PostHog::capture([
- 'distinctId' => request()->ip(),
- 'event' => '$pageview',
- 'properties' => array(
- '$current_url' => url()->current(),
- ),
- ]);
- return $next($request);
- }
-}