Download the PHP package oneseven9955/laravel-auditing-filesystem without Composer
On this page you can find all versions of the php package oneseven9955/laravel-auditing-filesystem. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oneseven9955/laravel-auditing-filesystem
More information about oneseven9955/laravel-auditing-filesystem
Files in oneseven9955/laravel-auditing-filesystem
Package laravel-auditing-filesystem
Short Description This filesystem driver, designed for the owen-it/laravel-auditing package, facilitates storing audits in CSV files across all Laravel disks that are registered.
License MIT
Informations about the package laravel-auditing-filesystem
This driver provides the functionality to save your model audit records as lines in CSV files. It is seamlessly integrated with Laravel Storage System, enabling you to use any of the registered disks specified in your application as storage destinations for the audit files.
Additionally, the driver offers flexibility in how the audit files are generated, allowing you to choose between creating a single comprehensive file or generating files for each hour of operation. Moreover, the driver can potentially improve performance by buffering the log records and then flushing them once you have completed making model changes.
Installation
To utilize this driver, you need to have owen-it/laravel-auditing: ^13.0
installed. Once this requirement is met, you
can proceed to install the driver as follows:
Setup
If you wish to modify the default behavior of the driver, you must include the following configuration entries in
config/audit.php
. The drivers key in the configuration file should be structured as follows:
Usage
You can integrate the driver into any Auditable model by following the code snippet below:
To optimize the process of writing audit records, consider buffering the records and writing them in bulk rather than individually. This approach helps reduce I/O operations, such as acquiring exclusive file locks and opening files repeatedly.
You can implement this optimization by following these steps:
All versions of laravel-auditing-filesystem with dependencies
owen-it/laravel-auditing Version ^13.0
league/csv Version ^9.0
league/flysystem Version ^3.8.0