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

Commit 5495d9c

Browse files
authored
Update Uuid class to the native Ramsey\Uuid\Uuid used by Illuminate
1 parent 45079f1 commit 5495d9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)