Answers for "how to use uuid in laravel 9"

PHP
6

uuid package generator laravel

//above in controller
use Illuminate\Support\Str;

//in function
$uuid = Str::uuid()->toString();

//terminal
composer require "webpatser/laravel-uuid:^3.0"
Posted by: Guest on August-19-2020
2

uuid table laravel

$table->uuid('id');
Posted by: Guest on July-03-2021
1

UUIDs LARAVEL

//above in controller
use Illuminate\Support\Str;

$uuid = (string) Str::uuid()
Posted by: Guest on November-23-2021

Browse Popular Code Answers by Language