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

Commit a1d6465

Browse files
committed
[KDG] cast Uuid::uuid4() to string
Signed-off-by: Wilker Mesquita <wilker@kirschbaumdevelopment.com>
1 parent 3fc2d4f commit a1d6465

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
}
4040
],
4141
"require": {
42-
"php": ">=8.0",
42+
"php": "^8.2",
4343
"owen-it/laravel-auditing": "^13.6",
44-
"elasticsearch/elasticsearch": "^8.*"
44+
"elasticsearch/elasticsearch": "^8.0"
4545
},
4646
"autoload": {
4747
"psr-4": {

src/Drivers/ElasticSearch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function indexAuditDocument($model)
146146
$params = [
147147
'index' => $this->index,
148148
'type' => $this->type,
149-
'id' => Uuid::uuid4(),
149+
'id' => (string) Uuid::uuid4(),
150150
'body' => $model
151151
];
152152

0 commit comments

Comments
 (0)