Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/midnite81/auditor
Auditor Json Renderer for Laravel
https://github.com/midnite81/auditor
Last synced: 15 days ago
JSON representation
Auditor Json Renderer for Laravel
- Host: GitHub
- URL: https://github.com/midnite81/auditor
- Owner: midnite81
- License: mit
- Created: 2016-07-12T21:24:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-28T07:00:25.000Z (over 8 years ago)
- Last Synced: 2024-05-18T10:46:53.202Z (6 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
#Auditor [![Latest Stable Version](https://poser.pugx.org/midnite81/auditor/version)](https://packagist.org/packages/midnite81/auditor) [![Total Downloads](https://poser.pugx.org/midnite81/auditor/downloads)](https://packagist.org/packages/midnite81/auditor) [![Latest Unstable Version](https://poser.pugx.org/midnite81/auditor/v/unstable)](https://packagist.org/packages/midnite81/auditor) [![License](https://poser.pugx.org/midnite81/auditor/license.svg)](https://packagist.org/packages/midnite81/auditor)
Auditor is a PHP package to retrieve audit json data from Laravel 5 and present it in table format.
**Please note this is a work in progress.**
#Installation
This package requires PHP 5.6+, and includes a Laravel 5 Service Provider.
To install through composer include the package in your `composer.json`.
"midnite81/auditor": "0.0.*"
Run `composer install` or `composer update` to download the dependencies or you can run `composer require midnite81/auditor`.
##Laravel 5 Integration
To use the package with Laravel 5 firstly add the Auditor service provider to the list of service providers
in `app/config/app.php`.'providers' => [
Midnite81\Auditor\AuditorServiceProvider::class
];#Basic Usage
**Please note this is a work in progress package. Documentation is not yet complete.**
use Midnite81\Auditor\Contracts\Auditor;
public function index(Auditor $auditor)
{$data = MyModel::orderBy('created_at', desc')->get(['data']);
$auditTable = $auditor->setData($data)->sort(['UserId', 'Priorty'])->render();
return view('some.view', ['auditTable' => $auditTable]);
}