diff --git a/composer.json b/composer.json index 5eab77e..bb08b15 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ } ], "require": { - "php": ">=8.0", + "php": "^8.2", "owen-it/laravel-auditing": "^13.6", "elasticsearch/elasticsearch": "^8.*" }, diff --git a/src/Drivers/ElasticSearch.php b/src/Drivers/ElasticSearch.php index c8dfcc6..617fb4c 100644 --- a/src/Drivers/ElasticSearch.php +++ b/src/Drivers/ElasticSearch.php @@ -146,7 +146,7 @@ public function indexAuditDocument($model) $params = [ 'index' => $this->index, 'type' => $this->type, - 'id' => Uuid::uuid4(), + 'id' => (string) Uuid::uuid4(), 'body' => $model ];