Skip to content

Commit 02f6e24

Browse files
committed
make the host configurable via services config
1 parent 141bf9b commit 02f6e24

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

config/services.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
return [
44
'mixpanel' => [
5+
'host' => 'api.mixpanel.com',
56
'token' => env('MIXPANEL_TOKEN'),
67
'enable-default-tracking' => true,
78
'consumer' => 'socket',

src/LaravelMixpanel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function __construct(Request $request, array $options = [])
1919
{
2020
$this->callbackResults = [];
2121
$this->defaults = [
22+
'host' => config('services.mixpanel.host', 'api.mixpanel.com'),
2223
'consumer' => config('services.mixpanel.consumer', 'socket'),
2324
'connect_timeout' => config('services.mixpanel.connect-timeout', 2),
2425
'timeout' => config('services.mixpanel.timeout', 2),

0 commit comments

Comments
 (0)