Skip to content

Commit

Permalink
Make public generate UUID
Browse files Browse the repository at this point in the history
  • Loading branch information
glorand authored Feb 3, 2020
1 parent 26cccc2 commit e290773
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/Database/Concerns/Uuid.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ protected static function boot(): void
});
}

protected function generateUuid(): string
public function generateUuid(): string
{
return Str::uuid()->toString();
}
Expand Down

0 comments on commit e290773

Please sign in to comment.