2017 © Pedro Peláez
 

library links

Links statistics for laravel 5

image

consoletvs/links

Links statistics for laravel 5

  • Monday, October 9, 2017
  • by ErikCampobadal
  • Repository
  • 4 Watchers
  • 47 Stars
  • 2,986 Installations
  • HTML
  • 1 Dependents
  • 0 Suggesters
  • 8 Forks
  • 1 Open issues
  • 7 Versions
  • 14 % Grown

The README.md

Links

StyleCI StyleCI StyleCI, (*1)

Links Logo, (*2)

Sample 1, (*3)

Sample 2, (*4)

Sample 3, (*5)

Sample 4, (*6)

Table Of Contents

Installation

To install charts use composer, (*7)

Download

composer require consoletvs/links

Add service provider & alias

Add the following service provider to the array in: config/app.php, (*8)

ConsoleTVs\Links\LinksServiceProvider::class,

Add the following alias to the array in: config/app.php, (*9)

'Links' => ConsoleTVs\Links\Facades\Links::class,

Publish the assets

php artisan vendor:publish

Migrate

php artisan migrate

Configuration

Default Settings

The file in: config/links.php contains an array of settings, you can find the default settings in there., (*10)

<?php

return [
    /* Middleware that will be applied to the statistic pages */
    'middleware' => ConsoleTVs\Links\Middleware\LinksMiddleware::class,

    /* Password to use if ConsoleTVs\Links\Middleware\LinksMiddleware is beeing used */
    'password' => 'LinksRocks',

    /* The views layout */
    'layout' => 'links::template',

    /* The route prefix, will be applied to all of the routes. */
    'prefix' => 'links',
];

You should now modify the password if you're willing to use the default middleware., (*11)

The Middleware

The middleware is applied to the statistics page, this middleware can be changed and you're able to apply your own access rules., (*12)

Default: ConsoleTVs\Links\Middleware\LinksMiddleware::class, (*13)

The default middleware requires a simple password to login., (*14)

The Password (Only with the default middleware)

The password needs to be set if you are using the default middleware. This will allow you to login., (*15)

Default: LinksRocks, (*16)

The Layout

The layout can be changed, but the current pages are designed using Bootstrap 4 keep that in mind., (*17)

Default: links::template, (*18)

The prefix

The prefix will be used in all of the routes. It determines the root of all the routes of the package., (*19)

Default: links, (*20)

Usage

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

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

Use the package facade:, (*22)

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

Track Pages

if you want to track down the current page, simply do this:, (*23)

Note: It uses jQuery!, (*24)

// If jQuery .js is already included and you don't want conflits:
{!! Links::track() !!}

// If jQuery .js is not included in your view, this will also add it.
{!! Links::track(true) !!}

Quick tip: Adding the track to the views layout will track all pages using that layout once visited!, (*25)

View the statistics

To view all the links statistics go to the root of the package (the prefix). The default prefix is: links., (*26)

Once you are inside the links app. You'll need to login if you're using the default mdiddleware. The default password is: LinksRocks, (*27)

Once you're in the web app, you're ready to explore the statistics., (*28)

The Versions

09/10 2017

dev-master

9999999-dev

Links statistics for laravel 5

  Sources   Download

MIT

The Requires

 

01/05 2017

1.0.3

1.0.3.0

Links statistics for laravel 5

  Sources   Download

MIT

The Requires

 

07/12 2016

1.0.2

1.0.2.0

Links statistics for laravel 5

  Sources   Download

MIT

The Requires

 

07/12 2016

dev-analysis-XanvNx

dev-analysis-XanvNx

Links statistics for laravel 5

  Sources   Download

MIT

The Requires

 

04/11 2016

1.0.1

1.0.1.0

Links statistics for laravel 5

  Sources   Download

MIT

The Requires

 

03/11 2016

dev-analysis-8PBJaP

dev-analysis-8PBJaP

Links statistics for laravel 5

  Sources   Download

MIT

The Requires

 

03/11 2016

1.0

1.0.0.0

Links statistics for laravel 5

  Sources   Download

MIT

The Requires