gabber12/laratracker

Tracking for laravel 5

dev-master 2017-02-17 18:19 UTC

This package is not auto-updated.

Last update: 2024-04-08 13:52:43 UTC


README

Tracking for Laravel

Build Status Coverage Status StyleCI

Table Of Contents

Installation

To install Laratracker use composer

Download

composer require gabber12/Laratracker

Add service provider & alias

Add the following service provider to the array in: config/app.php

Laratracker\Links\TrackingServiceProvider::class,

Add the following alias to the array in: config/app.php

'Tracker' => Laratracker\Links\Facades\Tracker::class,

Publish the assets

php artisan vendor:publish

Migrate

php artisan migrate

Usage

Create Links

To create links, go in the view where you want to add a traked link and instead of using the typical url operations:

{{ url('http://google.com') }}
{{ route('google') }}

Use the package facade:

{{ Tracker::url('http://google.com') }}
{{ Tracker::route('google') }}