how to use uuid in laravel model

113

use Illuminate\Support\Str;

$uuid = Str::uuid()->toString();
$table->uuid('id');

Comments

Submit
0 Comments