Answers for "generate random string laravel php"

PHP
9

laravel Str::random

use IlluminateSupportStr;

$random = Str::random(40);
Posted by: Guest on June-06-2020
0

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);
Posted by: Guest on September-16-2021

Code answers related to "generate random string laravel php"

Browse Popular Code Answers by Language