Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

random string value laravel

//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);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #random #string #laravel
ADD COMMENT
Topic
Name
1+6 =