Downloads
Stars
Version
Laravel Uuid
PHP: >=7.3
$ composer require rockbuzz/lara-uuid
Schema::create('workspaces', function (Blueprint $table) {
$table->uuid('id')->primary();
...
});
use Rockbuzz\LaraUuid\Traits\UUid;
class User extends Authenticatable
{
use Uuid;
public $incrementing = false;
protected $keyType = 'string';
protected $casts = [
'id' => 'string',
];
...
}
The Lara Uuid is open-sourced software licensed under the MIT license.