gabber12 / laratracker
Tracking for laravel 5
dev-master
2017-02-17 18:19 UTC
Requires
- php: >=5.6.4
- laravel/framework: ^5.0
- sinergi/browser-detector: *
Requires (Dev)
- laravel/browser-kit-testing: ^1.0
- orchestra/testbench: ~3.0
- phpunit/phpunit: ^5.0
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2025-02-10 17:29:09 UTC
README
Tracking for Laravel
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') }}