Skip to content

Commit

Permalink
document uuids
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 3, 2018
1 parent 8b891f1 commit b4a774f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,16 @@ In previous releases of Laravel, queued models would not be restored with their

If you are building an application on PHP 7.2.0 or greater, Laravel now supports password hashing via the Argon2 algorithm. The default hash driver for your application is controlled by a new `config/hashing.php` configuration file.

### UUID Methods

Laravel 5.6 introduces two new methods for generating UUIDs: `Str::uuid` and `Str::orderedUuid`. The `orderedUuid` method will generate a timestamp first UUID that is more easily and efficiently indexed by databases such as MySQL. Each of these methods returns a `Ramsey\Uuid\Uuid` object:

use Illuminate\Support\Str;

return (string) Str::uuid();

return (string) Str::orderedUuid();

### Collision

The default `laravel/laravel` application now contains a `dev` Composer dependency for the [Collision](https://github.com/nunomaduro/collision) package maintained by Nuno Maduro. This packages provides beautiful error reporting when interacting with your Laravel application on the command line:
Expand Down

0 comments on commit b4a774f

Please sign in to comment.