Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit 8bcccda

Browse files
committed
Update ServiceProvider.php
1 parent f9c120f commit 8bcccda

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ServiceProvider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,8 @@ private function registerAnalytics()
9090

9191
private function registerRoute()
9292
{
93-
if (!$httpUri = config('analytics-event-tracking.http_uri')) {
94-
return;
93+
if ($httpUri = config('analytics-event-tracking.http_uri')) {
94+
Route::post($httpUri, StoreClientIdInSession::class);
9595
}
96-
97-
Route::post($httpUri, StoreClientIdInSession::class);
9896
}
9997
}

0 commit comments

Comments
 (0)