To install Laratracker use composer
composer require gabber12/Laratracker
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,
php artisan vendor:publish
php artisan migrate
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') }}