Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 4bec1da

Browse files
committed
ReadMe: Auditing Elasticsearch Driver
1 parent c95d911 commit 4bec1da

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

README.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1+
# Auditing Elasticsearch Driver
2+
3+
[![Latest Unstable Version](https://poser.pugx.org/iconscout/laravel-auditing-elasticsearch/v/unstable)](https://packagist.org/packages/iconscout/laravel-auditing-elasticsearch) [![Total Downloads](https://poser.pugx.org/iconscout/laravel-auditing-elasticsearch/downloads)](https://packagist.org/packages/iconscout/laravel-auditing-elasticsearch) [![License](https://poser.pugx.org/iconscout/laravel-auditing-elasticsearch/license)](https://packagist.org/packages/iconscout/laravel-auditing-elasticsearch)
4+
15
This driver provides the ability to save your model audits in elasticsearch.
26

3-
### Installation
7+
## Contents
8+
9+
* [Installation](#installation)
10+
* [Setup](#setup)
11+
* [Console commands](#console-commands)
12+
* [Usage](#usage)
13+
* [Donate](#donate)
14+
15+
## Installation
416

517
This driver requires that you are using `owen-it/laravel-auditing: ^6.0`. Provided this is fulfilled,
618
you can install the driver like so:
@@ -9,7 +21,7 @@ you can install the driver like so:
921
composer require iconscout/laravel-auditing-elasticsearch
1022
```
1123

12-
### Setup
24+
## Setup
1325

1426
You need to add the following config entries in config/audit.php if you need to change the default behaviour of the driver.
1527
The `queue` key of the config file should look like so:
@@ -61,7 +73,18 @@ The `drivers` key of the config file should look like so:
6173
...
6274
```
6375

64-
### Usage
76+
## Console commands
77+
78+
Available artisan commands are listed below:
79+
80+
Command | Arguments | Description
81+
--- | ---
82+
auditing:es-index | Index all of the model's records into the search index.
83+
auditing:es-delete | Delete all of the model's records from the index.
84+
85+
For detailed description and all available options run `php artisan help [command]` in the command line.
86+
87+
## Usage
6588

6689
You can use the driver in any Auditable model like so:
6790

@@ -89,4 +112,8 @@ class SomeModel extends Model implements AuditableContract
89112
}
90113
```
91114

115+
## Donate
116+
117+
:coffee: If you like my package, it'd be nice of you [to buy me a cup of coffee](https://www.paypal.me/rankarpan).
118+
92119
More information on using customer drivers with owen-it/laravel-auditing can be found on their [homepage](http://laravel-auditing.com/docs/6.0/audit-drivers)

src/Console/DeleteCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class DeleteCommand extends Command
2525
*
2626
* @var string
2727
*/
28-
protected $signature = 'audit:es-delete';
28+
protected $signature = 'auditing:es-delete';
2929

3030
/**
3131
* The console command description.

src/Console/IndexCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class IndexCommand extends Command
2525
*
2626
* @var string
2727
*/
28-
protected $signature = 'audit:es-index';
28+
protected $signature = 'auditing:es-index';
2929

3030
/**
3131
* The console command description.

0 commit comments

Comments
 (0)