laravel-mixpanel icon indicating copy to clipboard operation
laravel-mixpanel copied to clipboard

Provides support for the Mixpanel 'debug' state

Open danhanly opened this issue 4 years ago • 0 comments
trafficstars

This PR expands upon the config and 'defaults' of the Mixpanel object construction to pass through the 'debug' argument to the dependent mixpanel library.

I've found myself needing to use 'debug' in order to effectively test my implementation, but wasn't able to readily turn the state off or on using this library.

Essentially, Mixpanel's base consumer class will post an error or info message to the PHP error log in the event that the debug argument is supplied as true

The argument I added to the config/env and the mixpanel constructor always defaults to false and it's therefore fully backwards compatible.

danhanly avatar Aug 11 '21 22:08 danhanly