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

Commit eb3cd93

Browse files
authored
Merge pull request #3 from ibrunotome/master
Update owen-it/laravel-auditing to ^7.0
2 parents dcbea98 + ae522e9 commit eb3cd93

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This driver provides the ability to save your model audits in elasticsearch.
1414

1515
## Installation
1616

17-
This driver requires that you are using `owen-it/laravel-auditing: ^6.0`. Provided this is fulfilled,
17+
This driver requires that you are using `owen-it/laravel-auditing: ^7.0`. Provided this is fulfilled,
1818
you can install the driver like so:
1919

2020
```
@@ -159,4 +159,4 @@ Donate directly via [Paypal](https://www.paypal.me/rankarpan)
159159

160160
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/rankarpan)
161161

162-
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)
162+
More information on using customer drivers with owen-it/laravel-auditing can be found on their [homepage](http://laravel-auditing.com/docs/7.0/audit-drivers)

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
],
3434
"require": {
3535
"php": ">=7.0",
36-
"owen-it/laravel-auditing": "^6.0",
37-
"elasticsearch/elasticsearch": "6.*",
38-
"webpatser/laravel-uuid": "*"
36+
"owen-it/laravel-auditing": "^7.0",
37+
"elasticsearch/elasticsearch": "6.*"
3938
},
4039
"autoload": {
4140
"psr-4": {

src/Drivers/ElasticSearch.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313

1414
namespace Iconscout\Auditing\Drivers;
1515

16-
use Webpatser\Uuid\Uuid, Carbon\Carbon;
16+
use Carbon\Carbon;
1717
use Elasticsearch\ClientBuilder;
1818
use Illuminate\Support\Facades\Config;
1919
use Iconscout\Auditing\Jobs\AuditIndexQueuedModels;
2020
use Iconscout\Auditing\Jobs\AuditDeleteQueuedModels;
21-
2221
use OwenIt\Auditing\Contracts\Audit;
2322
use OwenIt\Auditing\Contracts\Auditable;
2423
use OwenIt\Auditing\Contracts\AuditDriver;
2524
use OwenIt\Auditing\Models\Audit as AuditModel;
25+
use Ramsey\Uuid\Uuid;
2626

2727
class ElasticSearch implements AuditDriver
2828
{
@@ -146,7 +146,7 @@ public function indexAuditDocument($model)
146146
$params = [
147147
'index' => $this->index,
148148
'type' => $this->type,
149-
'id' => Uuid::generate(1, '02:42:ac:14:00:03')->string,
149+
'id' => Uuid::uuid4(),
150150
'body' => $model
151151
];
152152

0 commit comments

Comments
 (0)