uuid laravel code example
Example 1: 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"
Example 2: laravel str::random
use Illuminate\Support\Str;
$random = Str::random(40);
Example 3: uuid in laravel
use Illuminate\Support\Str;
$uuid = Str::uuid()->toString();
Example 4: laravel slug
$ composer require cviebrock/eloquent-sluggable