Download the PHP package rajmundtoth0/laravel-auditing-elasticsearch-driver without Composer
On this page you can find all versions of the php package rajmundtoth0/laravel-auditing-elasticsearch-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rajmundtoth0/laravel-auditing-elasticsearch-driver
More information about rajmundtoth0/laravel-auditing-elasticsearch-driver
Files in rajmundtoth0/laravel-auditing-elasticsearch-driver
Package laravel-auditing-elasticsearch-driver
Short Description An Elasticsearch driver for the owen-it/laravel-auditing package.
License MIT
Informations about the package laravel-auditing-elasticsearch-driver
Laravel Auditing Elasticsearch Driver
This is a community elasticsearch driver for Laravel Auditing.
Contents
- Requirements
- Installation
- Config
- Setup
- Usage
- Contribution
Requirements
Version | |
---|---|
php |
>= 8.2 |
Laravel |
^10\|^11 |
elasticsearch/elasticsearch |
^8.0 |
owen-it/laravel-auditing |
^13.0 |
Installation
Config
The driver
key of the config file should look like so:
The drivers
key of the config file should look like so:
Setup
Run the following artisan command after installation to create the Elasticsearch index:
php artisan es-audit-log:setup
Usage
The following structure ensures to store the audits in Elasticsearch:
And provides the following ways to retrieve the logs related to the given model:
$someModel->audit_log
$someModel->elasticsearchAuditLog()
Located in the ElasticsearchAuditable
trait.
Queue: When the queue configuration is set, the driver will dispatch a job to index each document.
Contribution
Pull requests has to be opened against the master
branch.
All versions of laravel-auditing-elasticsearch-driver with dependencies
elasticsearch/elasticsearch Version ^8.0
owen-it/laravel-auditing Version ^13.0
php-http/httplug Version ^2.4