gabber12 / Laratracker by gabber12

Tracking for laravel 5
7
0
2
Package Data
Maintainer Username: gabber12
Maintainer Contact: shubham.sha12@gmail.com (Shubham Sharma)
Package Create Date: 2017-02-16
Package Last Update: 2017-02-17
Language: PHP
License: MIT
Last Refreshed: 2025-02-05 15:04:24
Package Statistics
Total Downloads: 7
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 2

LaraTracker

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') }}