Download the PHP package lewis15520/auditeer without Composer
On this page you can find all versions of the php package lewis15520/auditeer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lewis15520/auditeer
More information about lewis15520/auditeer
Files in lewis15520/auditeer
Package auditeer
Short Description A package to audit requests and model data within laravel
License mit
Informations about the package auditeer
Auditeer
A package to audit requests and model data in Laravel
Requirements
- PHP 7.3 or later
- Laravel 8 or later
Installation
In order to run Auditeer you are required to follow these steps in your terminal
- Install the package with
- Copy the required package conents with
- Install the package migrations with
Usage
Enabling
To start auditing, go to and set the value to .
Config
The config is for you to configure Auditeer how you want it. There's documentation for each option and what it does. You can turn these on or off at any time.
Traits
The Auditeer trait is for you to asign to your own models. This allows you to track old and new data and the change log will be stored in the field. To do this, you first need to enable in the config by setting it to . On each mode you would like to track, you can add and then inside the model class, add . To test this works properly for you, make an update on a single object and check the audit view for that change. If there is in the parameters, this is successfully working.
Viewing recorded data
Viewing your Auditeer data is as easy as setting the option to in the config and going to in your url. Auditeer will provide you with a nice single page interface for you to look at and read your logs. You can edit the page settings in the config under the section.
Displaying user data
Under in the config, you can edit how the user is shown in the audit log data views. You can define the model class the user is from (the default is set to ). Inside the key, you can define column names to show the relevant data you would like to see (e.g or ). You can also concatinate columns with a inbetween (e.g ). The first one in the value will display normally and every column after will be put into its own brackets and will be displayed like the following: .