Permalink
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (24 sloc) 556 Bytes

Installation

Add RobBrazier/Piwik to composer.json:

composer require "robbrazier/piwik=~2.1"

Setup Service Provider

// app/config/app.php
'providers' = array(
    //...
    RobBrazier\Piwik\PiwikServiceProvider::class,
    //...
);

'aliases' = array(
    //...
    'Piwik' => RobBrazier\Piwik\Facades\Piwik::class,
    //...
);

Publish Configuration File

This will create a piwik.php config file in config/

php artisan vendor:publish --provider="RobBrazier\Piwik\PiwikServiceProvider" --tag="config"