use IlluminateSupportStr;
$random = Str::random(40);
use IlluminateSupportStr;
$randomString = Str::random(20);
//select random value from array
use IlluminateSupportArr;
$array = [1, 2, 3, 4, 5];
$random = Arr::random($array);
//generate random string of specific length
use IlluminateSupportStr;
$random = Str::random(40);