From e2907735d528b40b52e8b5720a0819ab99cdd7ec Mon Sep 17 00:00:00 2001 From: Lorand Gombos Date: Mon, 3 Feb 2020 08:33:33 +0200 Subject: [PATCH] Make public generate UUID --- CHANGELOG.md | 8 ++++++++ README.md | 1 + src/Database/Concerns/Uuid.php | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b21d49..94f03f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to `laravel-eloquent-model-uuid` will be documented in this file +## 2.0.1 - 2020-02-03 + +- Make public generate UUID + +## 2.0.0 - 2019-11-22 + +- Laravel 6 support + ## 1.0.0 - 2019-07-09 - Initial release diff --git a/README.md b/README.md index 089df33..31a998b 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![StyleCI](https://github.styleci.io/repos/194731086/shield?branch=master)](https://github.styleci.io/repos/194731086) [![Code Intelligence Status](https://scrutinizer-ci.com/g/glorand/laravel-eloquent-model-uuid/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/glorand/laravel-eloquent-model-uuid/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/glorand/laravel-eloquent-model-uuid/?branch=master) +[![Code Coverage](https://scrutinizer-ci.com/g/glorand/laravel-eloquent-model-uuid/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/glorand/laravel-eloquent-model-uuid/?branch=master) A simple solution for providing UUID support for the IDs of your Eloquent models. diff --git a/src/Database/Concerns/Uuid.php b/src/Database/Concerns/Uuid.php index ac892d3..6919969 100644 --- a/src/Database/Concerns/Uuid.php +++ b/src/Database/Concerns/Uuid.php @@ -19,7 +19,7 @@ protected static function boot(): void }); } - protected function generateUuid(): string + public function generateUuid(): string { return Str::uuid()->toString(); }