Skip to content

Commit b204db8

Browse files
author
Dan Hanly
committed
Provides support for the Mixpanel 'debug' state
1 parent fc79774 commit b204db8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

config/services.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
'consumer' => 'socket',
99
'connect-timeout' => 2,
1010
'timeout' => 2,
11-
"data_callback_class" => null,
11+
'data_callback_class' => null,
12+
'debug' => env('MIXPANEL_DEBUG', false),
1213
]
1314
];

src/LaravelMixpanel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public function __construct(Request $request, array $options = [])
2222
'consumer' => config('services.mixpanel.consumer', 'socket'),
2323
'connect_timeout' => config('services.mixpanel.connect-timeout', 2),
2424
'timeout' => config('services.mixpanel.timeout', 2),
25+
'debug' => config('services.mixpanel.debug', false),
2526
];
2627

2728
if (config('services.mixpanel.host')) {

0 commit comments

Comments
 (0)