Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (24 sloc) 531 Bytes

Installation

Add RobBrazier/Piwik to composer.json:

composer require "robbrazier/piwik=~2.0"

Setup Service Provider

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

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

Publish Configuration File

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

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