Pivotal A/B - Installation

composer require pivotalso/pivotal-ab

Add the service provider in config/app.php:

    'providers' => ServiceProvider::defaultProviders()->merge([
        ...
        pivotalso\PivotalAb\PivotalAbServiceProvider::class,
    ]),

You can publish and run the migrations with:

php artisan vendor:publish --tag="ab-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="ab-config"

The params provide the following config:

cache_key: the key used to set session and cookies for laravel ab

request_param: listen for query string param to override instance id to allow tracking across projects

allow_param: allows for the use of request param, disabled by default

api_key: [optional] the api key in project settings for pivotal intelligence