2017 © Pedro Peláez
 

library tracert

Laravel package to log the users actions in the database

image

jorenvanhocht/tracert

Laravel package to log the users actions in the database

  • Thursday, June 2, 2016
  • by jorenvh
  • Repository
  • 2 Watchers
  • 9 Stars
  • 3,047 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 13 Versions
  • 8 % Grown

The README.md

Tracert

Tracert is a package for Laravel to log actions of your users to your database., (*1)

Installation

Composer

You can require this package through composer, just run the following line in your terminal., (*2)

composer require jorenvanhocht/tracert 1.3-beta

Service Provider

Add the following line to the providers array in config/app.php, (*3)

'jorenvanhocht\Tracert\TracertServiceProvider',

If you want you can also add the facade to the aliases array in config/app.php, (*4)

Note: this is not required, you can make use of available helper method wich is faster., (*5)

'Tracert'   => 'jorenvanhocht\Blogify\Facades\Tracert',

Composer update

To be sure everything is loaded properly run composer update from your terminal., (*6)

Publish config file

If you want you can publish the config file by running the following command from your terminal, (*7)

php artisan vendor:publish --tag="config"

Migrations

This package contains a migration file to create the table where all actions will be logged into. Run it by the following command:, (*8)

php artisan migrate --path="vendor/jorenvanhocht/Tracert/database/Migrations"

Configuration

When you have published the config file you can change the name of the database table where all actions will be logged into., (*9)

The config file is located at config/Tracert.php., (*10)

Usage

Log an action

tracert()->log('Model', 'row', 'user_id', 'Action');

Retrieve actions for your activity feed

This package contains a model so you can just retrieve data like you would always do using Eloquent., (*11)

use jorenvanhocht\Tracert\Models\History;

History::all();
History::whereUserId(1);
History::whereTable('table_name');

...

## Issues, (*12)

If you find any issues pleas report them so I can fix them., (*13)

The Versions

02/06 2016

dev-master

9999999-dev

Laravel package to log the users actions in the database

  Sources   Download

MIT

02/06 2016

v2.0.1

2.0.1.0

Laravel package to log the users actions in the database

  Sources   Download

MIT

02/06 2016

dev-develop

dev-develop

Laravel package to log the users actions in the database

  Sources   Download

MIT

13/06 2015

dev-reposetoryPattern

dev-reposetoryPattern

Laravel package to log the users actions in the database

  Sources   Download

MIT

13/06 2015

v1.3-RC

1.3.0.0-RC

Laravel package to log the users actions in the database

  Sources   Download

MIT

13/06 2015

v2.0

2.0.0.0

Laravel package to log the users actions in the database

  Sources   Download

MIT

02/06 2015

v1.2-RC

1.2.0.0-RC

Laravel package to log the users actions in the database

  Sources   Download

MIT

25/05 2015

v1.0-RC

1.0.0.0-RC

Laravel package to log the users actions in the database

  Sources   Download

MIT

25/05 2015

v1.1-RC

1.1.0.0-RC

Laravel package to log the users actions in the database

  Sources   Download

MIT

12/05 2015

v1.3-beta

1.3.0.0-beta

Laravel package to log the users actions in the database

  Sources   Download

MIT

12/05 2015

v1.2-beta

1.2.0.0-beta

Laravel package to log the users actions in the database

  Sources   Download

MIT

12/05 2015

v1.1-beta

1.1.0.0-beta

Laravel package to log the users actions in the database

  Sources   Download

MIT

12/05 2015

v1.0-beta

1.0.0.0-beta

Laravel package to log the users actions in the database

  Sources   Download

MIT