LaravelPackages.net
Acme Inc.
Toggle sidebar
rockbuzz/lara-uuid

Laravel Uuid

1.131
0
2.0.2
About rockbuzz/lara-uuid

rockbuzz/lara-uuid is a Laravel package for laravel uuid. It currently has 0 GitHub stars and 1.131 downloads on Packagist (latest version 2.0.2). Install it with composer require rockbuzz/lara-uuid. Discover more Laravel packages by rockbuzz or browse all Laravel packages to compare alternatives.

Last updated

Lara Uuid

Laravel Uuid

Requirements

PHP: >=7.3

Install

$ 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',
    ];

    ...
	    
}

License

The Lara Uuid is open-sourced software licensed under the MIT license.

Star History Chart