2017 © Pedro Peláez
 

library statistics

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

image

ads/statistics

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  • Monday, June 25, 2018
  • by scs-ben
  • Repository
  • 1 Watchers
  • 2 Stars
  • 2,410 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 23 Versions
  • 5 % Grown

The README.md

ads-statistics

Audit/Error Logging Module for Laravel

The module will track the page view history for all users of the associated website. The module will log 500 error statistics to help with debugging code. Additionaly, the posted data for form submission will be saved in the database. The settings file has an array option that allows you to remove sensitive files from being saved in the tracking table., (*1)

Once configired, this plugin will automatically save page viewing history to the database., (*2)

(Make sure to run "php artisan migrate" if updating), (*3)

Step 1:, (*4)

Set up composer, add the package to your require tag:, (*5)

composer require ads/statistics

Step 2:, (*6)

Publish and run migrations:, (*7)

php artisan vendor:publish --provider=Ads\\Statistics\\StatisticsServiceProvider
php artisan migrate

Step 3:, (*8)

Add Statistic logging to 'web' middleware in app\Http\Kernel.php:, (*9)

    protected $middlewareGroups = [
        'web' => [
            ...
            \Ads\Statistics\Statistic::class,
        ],

Step 4:, (*10)

In order to log 500 errors, you'll need to add some code to the app/Exceptions/Handler.php Add this interceptor to the register function Add to or create the report function before the return:, (*11)

public function register()
{
    $this->reportable(function (Throwable $e) {
        //
    });

    $this->reportable(function (\Exception $e) {
        \Statistic::error($e);
    });
}

* Step 5 is only necessary if you have user authentication, (*12)

Step 5:, (*13)

Edit the config/statistics.php file., (*14)

Please enter the column names from your user database table., (*15)

For example:, (*16)

  'user_id' => 'email',
  'first_name' => 'first_name',
  'last_name' => 'last_name',
  'protected_fields' => ['password'],

The Versions

25/06 2018

dev-master

9999999-dev

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3 GPL-3.0-or-later

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

25/06 2018

2.1.7

2.1.7.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

GPL-3.0-or-later

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

25/06 2018

2.1.6

2.1.6.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

GPL-3.0-or-later

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

14/02 2018

v1.x-dev

1.9999999.9999999.9999999-dev

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

GPL-3.0-or-later

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

14/02 2018

1.0.2

1.0.2.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

GPL-3.0-or-later

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

14/02 2018

2.1.5

2.1.5.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

GPL-3.0-or-later

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

01/03 2017

2.1.4

2.1.4.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

28/02 2017

2.1.3

2.1.3.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

26/10 2016

2.1.2

2.1.2.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

25/02 2016

2.1.1

2.1.1.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

25/02 2016

2.1.0.1

2.1.0.1

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

25/02 2016

2.1.0

2.1.0.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

12/02 2016

2.0.5

2.0.5.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

26/01 2016

2.0.4.3

2.0.4.3

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

26/01 2016

2.0.4.2

2.0.4.2

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

25/01 2016

2.0.4.1

2.0.4.1

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

25/01 2016

2.0.4

2.0.4.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

20/01 2016

2.0.3

2.0.3.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

04/01 2016

2.0.2

2.0.2.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

19/11 2015

2.0.1

2.0.1.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

30/06 2015

2.0.0

2.0.0.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

30/06 2015

1.x-dev

1.9999999.9999999.9999999-dev

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging

30/06 2015

1.0.1

1.0.1.0

Tracks basic user information to generate statistical data on page usage. Also provides additional information to debug 500 errors

  Sources   Download

LGPLv3

The Requires

 

by Agility Data Systems

laravel administrative site usage statistics additional error debugging