Skip to content

Commit

Permalink
uuid version is returned from a method, not set on a property
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldyrynda committed Jan 7, 2025
1 parent 36e4f9e commit 605a37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ The package will use `uuid` as the column name to store the generated UUID value

You may also override the `uuidColumn` method on a per-model basis.

By default, this package will use UUID version 4 values, however, you are welcome to use `uuid1`, `uuid4`, `uuid6`, or `uuid7` by specifying the protected property `$uuidVersion` in your model. Should you wish to take advantage of [ordered UUID (version 4) values that were introduced in Laravel 5.6](https://laravel.com/docs/master/helpers#method-str-ordered-uuid), you should specify `ordered` as the `$uuidVersion` in your model.
By default, this package will use UUID version 4 values, however, you are welcome to use `uuid1`, `uuid4`, `uuid6`, or `uuid7` by specifying the protected property `$uuidVersion` in your model. Should you wish to take advantage of [ordered UUID (version 4) values that were introduced in Laravel 5.6](https://laravel.com/docs/master/helpers#method-str-ordered-uuid), you should return `ordered` from your model's `uuidVersion()` method.

```php
<?php
Expand Down

0 comments on commit 605a37c

Please sign in to comment.