PHPackages                             seinoxygen/audit-viewer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. seinoxygen/audit-viewer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

seinoxygen/audit-viewer
=======================

A simple audit viewer viewer for the package owen-it/laravel-auditing.

v1.0.1(2y ago)1168↓100%1[1 PRs](https://github.com/seinoxygen/audit-viewer/pulls)MITBladePHP ^7.1|^8.0

Since Dec 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/seinoxygen/audit-viewer)[ Packagist](https://packagist.org/packages/seinoxygen/audit-viewer)[ RSS](/packages/seinoxygen-audit-viewer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel Audit Viewer
====================

[](#laravel-audit-viewer)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/donate/?hosted_button_id=6CYVR8U4VDMAA) [![Packagist Downloads](https://camo.githubusercontent.com/d413ed9bee10b41897115a79037f41ff1b7577b67a81452bb595d7ee928c60d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7365696e6f787967656e2f61756469742d7669657765723f6c6162656c3d446f776e6c6f616473)](https://camo.githubusercontent.com/d413ed9bee10b41897115a79037f41ff1b7577b67a81452bb595d7ee928c60d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7365696e6f787967656e2f61756469742d7669657765723f6c6162656c3d446f776e6c6f616473)

A simple audit viewer viewer for the package owen-it/laravel-auditing.

Installation
------------

[](#installation)

Add Audit Viewer as a dependency using the composer CLI:

```
composer require seinoxygen/audit-viewer
```

Publishing Assets
-----------------

[](#publishing-assets)

```
php artisan vendor:publish --provider="SeinOxygen\AuditViewer\AuditViewerServiceProvider" --tag=config

php artisan vendor:publish --provider="SeinOxygen\AuditViewer\AuditViewerServiceProvider" --tag=views

php artisan vendor:publish --provider="SeinOxygen\AuditViewer\AuditViewerServiceProvider" --tag=view-components

php artisan vendor:publish --provider="SeinOxygen\AuditViewer\AuditViewerServiceProvider" --tag=translations
```

Basic Usage
-----------

[](#basic-usage)

If using &lt; Laravel 5.5, add the AuditViewerServiceProvider to the providers array

```
'providers' => [
    ...
    SeinOxygen\AuditViewer\AuditViewerServiceProvider::class,
    ...
],
```

Using your-url.com/audit-viewer you can have access to all audits saved on your database.

### Controllers

[](#controllers)

In your controller you'll need to add the AuditViewContract and the trait HasAudits.

Also you'll need to return the auditable model in the function setModel().

```
