A wrapper for the Optimizely SDK.
A webhook is exposed at POST /optimizely/webhook to be called by Optimizely when the configuration needs to be reloaded.
The activate() call is cached to reduce usage of Optimizely impressions.
use Optimizely
...
$variant = Optimizely::activate(new Experiment(auth()->user()));
$variant = Experiment::activate(auth()->user());
---- OR
$isFeatureEnabled = Optimizely::isFeatureEnabled(new Experiment(auth()->user());
$isFeatureEnabled = Experiment::isEnabled(auth()->user());