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);
Code Example |
---|
:: |
:: |
Php :: user-agent cURL php |
:: |
Php :: |
:: laravel success message |
Php :: eloquent get random |
:: |
Php :: |
:: date now php |
:: |
:: |
Php :: |
:: |
Php :: |
:: laravel get current route name |
Php :: |
:: |
:: |
:: |
:: |
:: |
Php :: php isarray |
:: get current url in codeigniter |
Php :: |
Php :: |
:: |
Php :: laravel clear everything |
:: |
:: |