rockbuzz / lara-uuid
Laravel Uuid
2.0.2
2023-02-17 19:29 UTC
Requires
- php: >=7.3
Requires (Dev)
- orchestra/testbench: ^4.0
- squizlabs/php_codesniffer: ^3.2
This package is auto-updated.
Last update: 2024-10-20 20:04:03 UTC
README
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.