From 8f02ed0a76ce021d9877f28793aa0ebff2b88e8c Mon Sep 17 00:00:00 2001 From: Frankie B Date: Wed, 19 Jun 2024 15:15:35 +0100 Subject: Remove posthog pageview middleware --- app/Http/Middleware/PageView.php | 28 ---------------------------- app/Providers/AppServiceProvider.php | 9 +-------- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 app/Http/Middleware/PageView.php (limited to 'app') 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 @@ - request()->ip(), - 'event' => '$pageview', - 'properties' => array( - '$current_url' => url()->current(), - ), - ]); - return $next($request); - } -} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 3aa155c..2209133 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -17,12 +17,5 @@ class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. */ - public function boot(): void { - PostHog::init( - Config::get('services.posthog.key'), - [ - 'host' => 'https://'.Config::get('services.posthog.host') - ] - ); - } + public function boot(): void {} } -- cgit v1.2.3-54-g00ecf