PHP code example of rockbuzz / lara-uuid
1. Go to this page and download the library: Download rockbuzz/lara-uuid library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rockbuzz / lara-uuid example snippets
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',
];
...
}