//above in controller use IlluminateSupportStr; //in function $uuid = Str::uuid()->toString(); //terminal composer require "webpatser/laravel-uuid:^3.0"