Bundle mixpanel for Laravel 5

dev-master 2015-06-15 20:25 UTC

This package is not auto-updated.

Last update: 2022-08-06 06:38:08 UTC


Install it with

composer require "hydrarulz/laravel-mixpanel:dev-master"

Add the service provider at the end of the providers array in file config/app.php:


The service provider will register an interface, but you should also register the alias at the end of the aliases array:

'LaravelMixpanel' => 'Hydrarulz\LaravelMixpanel\Facades\LaravelMixpanel',

Then the you should publish the config file with php artisan vendor:publish This creates your config file /config/laravel-mixpanel.php that looks like this:


return [
    'token' => 'YOUR TOKEN HERE'

Replace with your Mixpanel token.

After this you can start using it in your application

$mixpanel = LaravelMixpanel::getInstance();
    , [
        'name' => 'Daniel Luca'
    , [
        'Type' => 'Click'