2017 © Pedro Peláez
 

library eloquentauditing

Eloquent helper class to handle auditing

image

mauriciobernal/eloquentauditing

Eloquent helper class to handle auditing

  • Thursday, May 5, 2016
  • by MauroB45
  • Repository
  • 1 Watchers
  • 1 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

EloquentAuditing Package

Eloquent helper to audit database transactions by simply adding its trait to your Eloquent model., (*1)

Install

This package can be installed with Composer running the following command:, (*2)

  php require MauricioBernal\EloquentAuditing

After installing the EloquentAuditing, register the MauricioBernal\ElquentAuditing\EloquentAuditingServiceProvider in your config/app.php configuration file like:, (*3)

  'providers' => [
    // ...
    MauricioBernal\EloquentAuditing\EloquentAuditingServiceProvider::class
  ],

Publish the attached migration to generate the audit table in which all transaction will be recorded., (*4)

  php artisan vendor:publish --provider="MauricioBernal\EloquentAuditing\EloquentAuditingServiceProvider"

Run composer dump-autoload and run the migrations., (*5)

  php artisan migrate

Use:

To start registering all transactions you need to add the trait MauricioBernal/EloquentAuditing/Auditing in your eloquent model., (*6)

namespace App;

use Illuminate\Foundation\Auth\User as Authenticatable;
use MauricioBernal\EloquentAuditing\Auditing;

class User extends Authenticatable
{
    use Auditing;
    // ...
  • Configuration
protected $recordEvents = ['created', 'updated', 'deleted'];

Contributing

Contributions are welcomed; to keep things organized, all bugs and requests should be opened on github issues tab for the main project in Issues., (*7)

All pull requests should be made to the 'dev' branch, so they can be tested before being merged into master., (*8)

License

The laravel-audit package is open source software licensed under the license MIT, (*9)

The Versions

05/05 2016

dev-master

9999999-dev

Eloquent helper class to handle auditing

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Mauricio Bernal

05/05 2016

v1.0.2

1.0.2.0

Eloquent helper class to handle auditing

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Mauricio Bernal

01/04 2016

v1.0.1

1.0.1.0

Eloquent helper class to handle auditing

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Mauricio Bernal

23/02 2016

V1.0.0

1.0.0.0

Eloquent helper class to handle auditing

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Mauricio Bernal